Skip to content

Commit

Permalink
iio: humidity: am2315: set up buffer timestamps for non-zero values
Browse files Browse the repository at this point in the history
Use the iio_pollfunc_store_time parameter during triggered buffer
set-up to get valid timestamps.

Signed-off-by: Alison Schofield <[email protected]>
Cc: Daniel Baluta <[email protected]>
Reviewed-By: Tiberiu Breana <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
AlisonSchofield authored and jic23 committed Aug 15, 2016
1 parent b234f68 commit 3c68858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/humidity/am2315.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3c68858

Please sign in to comment.