diff options
| author | Sean Nyekjaer <sean@geanix.com> | 2019-05-07 04:23:04 -0400 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-05-11 07:50:18 -0400 |
| commit | e6d12298310fa1dc11f1d747e05b168016057fdd (patch) | |
| tree | b2d9914d1fdd4dfa0019a89334c14ec6d6115920 | |
| parent | 60f2208699ec08ff9fdf1f97639a661a92a18f1c (diff) | |
iio: adc: ti-ads8688: fix timestamp is not updated in buffer
When using the hrtimer iio trigger timestamp isn't updated.
If we use iio_get_time_ns it is updated correctly.
Fixes: 2a86487786b5c ("iio: adc: ti-ads8688: add trigger and buffer support")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
| -rw-r--r-- | drivers/iio/adc/ti-ads8688.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ti-ads8688.c b/drivers/iio/adc/ti-ads8688.c index 8b4568edd5cb..7f16c77b99fb 100644 --- a/drivers/iio/adc/ti-ads8688.c +++ b/drivers/iio/adc/ti-ads8688.c | |||
| @@ -397,7 +397,7 @@ static irqreturn_t ads8688_trigger_handler(int irq, void *p) | |||
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | iio_push_to_buffers_with_timestamp(indio_dev, buffer, | 399 | iio_push_to_buffers_with_timestamp(indio_dev, buffer, |
| 400 | pf->timestamp); | 400 | iio_get_time_ns(indio_dev)); |
| 401 | 401 | ||
| 402 | iio_trigger_notify_done(indio_dev->trig); | 402 | iio_trigger_notify_done(indio_dev->trig); |
| 403 | 403 | ||
