Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1440728
| From | "Breana, Tiberiu A" <tiberiu.a.breana@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 2/3] iio: humidity: am2315: set up buffer timestamps for non-zero values |
| Date | 2016-07-11 18:00 +0200 |
| Message-ID | <rTLMK-CQ-17@gated-at.bofh.it> (permalink) |
| References | <rTLjH-lg-7@gated-at.bofh.it> <rTLjH-lg-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message-----
> From: Alison Schofield [mailto:amsfield22@gmail.com]
> Sent: Monday, July 11, 2016 6:26 PM
> To: jic23@kernel.org
> Cc: Breana, Tiberiu A <tiberiu.a.breana@intel.com>; mranostay@gmail.com;
> knaack.h@gmx.de; lars@metafoo.de; pmeerw@pmeerw.net; linux-
> iio@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [PATCH 2/3] iio: humidity: am2315: 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@gmail.com>
> Cc: Daniel Baluta <daniel.baluta@gmail.com>
> ---
+1
Reviewed-By: Tiberiu Breana <tiberiu.a.breana@intel.com>
> drivers/iio/humidity/am2315.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c
> index 3e200f6..ff96b6d 100644
> --- a/drivers/iio/humidity/am2315.c
> +++ b/drivers/iio/humidity/am2315.c
> @@ -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");
> --
> 2.1.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/3] iio: humidity: am2315: set up buffer timestamps for non-zero values Alison Schofield <amsfield22@gmail.com> - 2016-07-11 17:30 +0200
RE: [PATCH 2/3] iio: humidity: am2315: set up buffer timestamps for non-zero values "Breana, Tiberiu A" <tiberiu.a.breana@intel.com> - 2016-07-11 18:00 +0200
Re: [PATCH 2/3] iio: humidity: am2315: set up buffer timestamps for non-zero values Jonathan Cameron <jic23@kernel.org> - 2016-07-24 14:10 +0200
csiph-web