From: Alison Schofield Date: Mon, 11 Jul 2016 15:25:07 +0000 (-0700) Subject: iio: accel: bma220_spi: set up buffer timestamps for non-zero values X-Git-Tag: v4.14-rc1~2547^2^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b234f683dde97aebb7009c6aecab651d32ad70b4;p=platform%2Fkernel%2Flinux-rpi.git iio: accel: bma220_spi: set up buffer timestamps for non-zero values Use the iio_pollfunc_store_time parameter during triggered buffer set-up to get valid timestamps. Signed-off-by: Alison Schofield Cc: Daniel Baluta Reviewed-By: Tiberiu Breana Cc: Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/accel/bma220_spi.c b/drivers/iio/accel/bma220_spi.c index 1098d10..5099f29 100644 --- a/drivers/iio/accel/bma220_spi.c +++ b/drivers/iio/accel/bma220_spi.c @@ -253,7 +253,7 @@ static int bma220_probe(struct spi_device *spi) if (ret < 0) return ret; - ret = iio_triggered_buffer_setup(indio_dev, NULL, + ret = iio_triggered_buffer_setup(indio_dev, iio_pollfunc_store_time, bma220_trigger_handler, NULL); if (ret < 0) { dev_err(&spi->dev, "iio triggered buffer setup failed\n");