Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611977
| From | simran singhal <singhalsimran0@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values |
| Date | 2017-03-29 16:20 +0200 |
| Message-ID | <tqmC5-83f-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Use the iio_pollfunc_store_time parameter during triggered buffer set-up
to get valid timestamps.
Signed-off-by: simran singhal <singhalsimran0@gmail.com>
---
drivers/iio/accel/bma180.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c
index efc6773..4ae5c80 100644
--- a/drivers/iio/accel/bma180.c
+++ b/drivers/iio/accel/bma180.c
@@ -762,7 +762,7 @@ static int bma180_probe(struct i2c_client *client,
goto err_trigger_free;
}
- ret = iio_triggered_buffer_setup(indio_dev, NULL,
+ ret = iio_triggered_buffer_setup(indio_dev, iio_pollfunc_store_time,
bma180_trigger_handler, NULL);
if (ret < 0) {
dev_err(&client->dev, "unable to setup iio triggered buffer\n");
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values simran singhal <singhalsimran0@gmail.com> - 2017-03-29 16:20 +0200
Re: [Outreachy kernel] [PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values Alison Schofield <amsfield22@gmail.com> - 2017-03-29 17:20 +0200
Re: [Outreachy kernel] [PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values Alison Schofield <amsfield22@gmail.com> - 2017-03-29 18:10 +0200
csiph-web