diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-07-11 17:26:56 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-08-15 16:39:27 +0200 |
commit | f8adf645db03345af2d9a8b6095b02327ea50885 (patch) | |
tree | 489cf5a40295330a12286b17f8298bd45e0fb4c7 /drivers/iio | |
parent | iio: humidity: am2315: set up buffer timestamps for non-zero values (diff) | |
download | linux-f8adf645db03345af2d9a8b6095b02327ea50885.tar.xz linux-f8adf645db03345af2d9a8b6095b02327ea50885.zip |
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')
-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 2e3a70e1b245..5656deb17261 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) { |