Thread (9 messages) 9 messages, 3 authors, 2016-07-24

[PATCH 1/3] iio: accel: bma220_spi: set up buffer timestamps for non-zero values

flat view
STALE3729d

From: Alison Schofield <hidden>
Date: 2016-07-11 15:25:20
Also in: linux-iio
Subsystem: bosch sensortec bma220 accelerometer iio driver, iio subsystem and drivers, the rest · Maintainers: Petre Rodan, Jonathan Cameron, Linus Torvalds

Use the iio_pollfunc_store_time parameter during triggered buffer
set-up to get valid timestamps.

Signed-off-by: Alison Schofield <redacted>
Cc: Daniel Baluta <redacted>
---
 drivers/iio/accel/bma220_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/accel/bma220_spi.c b/drivers/iio/accel/bma220_spi.c
index 1098d10..5099f29 100644
--- a/drivers/iio/accel/bma220_spi.c
+++ b/drivers/iio/accel/bma220_spi.c
@@ -253,7 +253,7 @@ static int bma220_probe(struct spi_device *spi)
 	if (ret < 0)
 		return ret;
 
-	ret = iio_triggered_buffer_setup(indio_dev, NULL,
+	ret = iio_triggered_buffer_setup(indio_dev, iio_pollfunc_store_time,
 					 bma220_trigger_handler, NULL);
 	if (ret < 0) {
 		dev_err(&spi->dev, "iio triggered buffer setup failed\n");
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help