Commit 4885627a authored by Alison Schofield's avatar Alison Schofield Committed by Ben Hutchings

iio: proximity: as3935: set up buffer timestamps for non-zero values

commit f8adf645 upstream.

Use the iio_pollfunc_store_time parameter during triggered buffer
set-up to get valid timestamps.
Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 87de1db1
...@@ -389,7 +389,7 @@ static int as3935_probe(struct spi_device *spi) ...@@ -389,7 +389,7 @@ static int as3935_probe(struct spi_device *spi)
return ret; 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); &as3935_trigger_handler, NULL);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment