[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4586F61A4A291F4DA44D32824E7C0F40235BAB3C@IRSMSX109.ger.corp.intel.com>
Date: Mon, 11 Jul 2016 15:53:30 +0000
From: "Breana, Tiberiu A" <tiberiu.a.breana@...el.com>
To: Alison Schofield <amsfield22@...il.com>,
"jic23@...nel.org" <jic23@...nel.org>
CC: "mranostay@...il.com" <mranostay@...il.com>,
"knaack.h@....de" <knaack.h@....de>,
"lars@...afoo.de" <lars@...afoo.de>,
"pmeerw@...erw.net" <pmeerw@...erw.net>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 1/3] iio: accel: bma220_spi: set up buffer timestamps
for non-zero values
> -----Original Message-----
> From: Alison Schofield [mailto:amsfield22@...il.com]
> Sent: Monday, July 11, 2016 6:25 PM
> To: jic23@...nel.org
> Cc: Breana, Tiberiu A <tiberiu.a.breana@...el.com>; mranostay@...il.com;
> knaack.h@....de; lars@...afoo.de; pmeerw@...erw.net; linux-
> iio@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: [PATCH 1/3] 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 <amsfield22@...il.com>
> Cc: Daniel Baluta <daniel.baluta@...il.com>
+1
Reviewed-By: Tiberiu Breana <tiberiu.a.breana@...el.com>
> ---
> 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
Powered by blists - more mailing lists