diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-07-11 08:26:56 -0700 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-08-15 15:39:27 +0100 |
commit | f8adf645db03345af2d9a8b6095b02327ea50885 (patch) | |
tree | 489cf5a40295330a12286b17f8298bd45e0fb4c7 | |
parent | 3c68858df7c2f0c4c343bb4702733fe827491f9e (diff) | |
download | op-kernel-dev-f8adf645db03345af2d9a8b6095b02327ea50885.zip op-kernel-dev-f8adf645db03345af2d9a8b6095b02327ea50885.tar.gz |
iio: proximity: as3935: 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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/proximity/as3935.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c index 2e3a70e..5656deb 100644 --- a/drivers/iio/proximity/as3935.c +++ b/drivers/iio/proximity/as3935.c @@ -397,7 +397,7 @@ static int as3935_probe(struct spi_device *spi) return ret; } - ret = iio_triggered_buffer_setup(indio_dev, NULL, + ret = iio_triggered_buffer_setup(indio_dev, iio_pollfunc_store_time, &as3935_trigger_handler, NULL); if (ret) { |