summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-07-11 08:25:07 -0700
committerJonathan Cameron <jic23@kernel.org>2016-08-15 15:39:18 +0100
commitb234f683dde97aebb7009c6aecab651d32ad70b4 (patch)
tree4bd345b53e17ae2719ea199b41615b329df9772a
parent7d3cc21dab5313a02f2f3ca8164529b828a030d1 (diff)
downloadlinux-b234f683dde97aebb7009c6aecab651d32ad70b4.tar.gz
linux-b234f683dde97aebb7009c6aecab651d32ad70b4.tar.bz2
linux-b234f683dde97aebb7009c6aecab651d32ad70b4.zip
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 <amsfield22@gmail.com> Cc: Daniel Baluta <daniel.baluta@gmail.com> Reviewed-By: Tiberiu Breana <tiberiu.a.breana@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/accel/bma220_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/bma220_spi.c b/drivers/iio/accel/bma220_spi.c
index 1098d10df8e8..5099f295dd37 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");