]> Git Repo - linux.git/commitdiff
iio: adc: ti-ads8688: fix timestamp is not updated in buffer
authorSean Nyekjaer <[email protected]>
Tue, 7 May 2019 08:23:04 +0000 (10:23 +0200)
committerJonathan Cameron <[email protected]>
Sat, 11 May 2019 11:50:18 +0000 (12:50 +0100)
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 <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/iio/adc/ti-ads8688.c

index 8b4568edd5cb6e93a7567523999313c3d64c781b..7f16c77b99fb4aea62c902ceb05473012b3b9821 100644 (file)
@@ -397,7 +397,7 @@ static irqreturn_t ads8688_trigger_handler(int irq, void *p)
        }
 
        iio_push_to_buffers_with_timestamp(indio_dev, buffer,
-                       pf->timestamp);
+                       iio_get_time_ns(indio_dev));
 
        iio_trigger_notify_done(indio_dev->trig);
 
This page took 0.05915 seconds and 4 git commands to generate.