iio: adc: ti-ads8688: fix timestamp is not updated in buffer
authorSean Nyekjaer <sean@geanix.com>
Tue, 7 May 2019 08:23:04 +0000 (10:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:17:15 +0000 (09:17 +0200)
commit5dede5c9e60503151e3f28c0955e4cb8757cadf2
tree20ac17d93e22fdd1459af94f4f6d06029f4ef271
parent06c5ec6fd0b17b4c5491c58b47133d21388eec62
iio: adc: ti-ads8688: fix timestamp is not updated in buffer

commit e6d12298310fa1dc11f1d747e05b168016057fdd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ti-ads8688.c