FAILED: patch "[PATCH] iio: accel: bma220_spi: set up buffer timestamps for non-zero" failed to apply to 4.7-stable tree

From: <gregkh@linuxfoundation.org>
Date: 2016-09-22 13:10:13
Subsystem: bosch sensortec bma220 accelerometer iio driver, iio subsystem and drivers, the rest · Maintainers: Petre Rodan, Jonathan Cameron, Linus Torvalds

The patch below does not apply to the 4.7-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to [off-list ref].

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------
From b234f683dde97aebb7009c6aecab651d32ad70b4 Mon Sep 17 00:00:00 2001
From: Alison Schofield <redacted>
Date: Mon, 11 Jul 2016 08:25:07 -0700
Subject: [PATCH] iio: accel: bma220_spi: 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 <redacted>
Cc: Daniel Baluta <redacted>
Reviewed-By: Tiberiu Breana <redacted>
Cc: <redacted>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
diff --git a/drivers/iio/accel/bma220_spi.c b/drivers/iio/accel/bma220_spi.c
index 1098d10df8e8..5099f295dd37 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");
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help