diff options
author | Alison Schofield <amsfield22@gmail.com> | 2016-07-11 08:26:13 -0700 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-08-15 15:39:23 +0100 |
commit | 3c68858df7c2f0c4c343bb4702733fe827491f9e (patch) | |
tree | 23328a2dcbe4b1bbc97712e05e0bd20ffa60be47 /drivers/iio/humidity | |
parent | b234f683dde97aebb7009c6aecab651d32ad70b4 (diff) | |
download | linux-3c68858df7c2f0c4c343bb4702733fe827491f9e.tar.bz2 |
iio: humidity: am2315: 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>
Diffstat (limited to 'drivers/iio/humidity')
-rw-r--r-- | drivers/iio/humidity/am2315.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c index 3e200f69e886..ff96b6d0fdae 100644 --- a/drivers/iio/humidity/am2315.c +++ b/drivers/iio/humidity/am2315.c @@ -244,7 +244,7 @@ static int am2315_probe(struct i2c_client *client, indio_dev->channels = am2315_channels; indio_dev->num_channels = ARRAY_SIZE(am2315_channels); - ret = iio_triggered_buffer_setup(indio_dev, NULL, + ret = iio_triggered_buffer_setup(indio_dev, iio_pollfunc_store_time, am2315_trigger_handler, NULL); if (ret < 0) { dev_err(&client->dev, "iio triggered buffer setup failed\n"); |