diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-07-11 08:25:07 -0700 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-08-15 15:39:18 +0100 |
commit | b234f683dde97aebb7009c6aecab651d32ad70b4 (patch) | |
tree | 4bd345b53e17ae2719ea199b41615b329df9772a | |
parent | 7d3cc21dab5313a02f2f3ca8164529b828a030d1 (diff) | |
download | op-kernel-dev-b234f683dde97aebb7009c6aecab651d32ad70b4.zip op-kernel-dev-b234f683dde97aebb7009c6aecab651d32ad70b4.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |