summaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-07-11 08:26:56 -0700
committerJonathan Cameron <jic23@kernel.org>2016-08-15 15:39:27 +0100
commitf8adf645db03345af2d9a8b6095b02327ea50885 (patch)
tree489cf5a40295330a12286b17f8298bd45e0fb4c7 /drivers/iio/proximity
parent3c68858df7c2f0c4c343bb4702733fe827491f9e (diff)
downloadop-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>
Diffstat (limited to 'drivers/iio/proximity')
-rw-r--r--drivers/iio/proximity/as3935.c2
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) {
OpenPOWER on IntegriCloud