diff options
Diffstat (limited to 'drivers/iio/adc/at91_adc.c')
-rw-r--r-- | drivers/iio/adc/at91_adc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 79c53b8e195c..5c8f690ce92f 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c | |||
@@ -83,13 +83,7 @@ static irqreturn_t at91_adc_trigger_handler(int irq, void *p) | |||
83 | j++; | 83 | j++; |
84 | } | 84 | } |
85 | 85 | ||
86 | if (idev->scan_timestamp) { | 86 | iio_push_to_buffers_with_timestamp(idev, st->buffer, pf->timestamp); |
87 | s64 *timestamp = (s64 *)((u8 *)st->buffer + | ||
88 | ALIGN(j, sizeof(s64))); | ||
89 | *timestamp = pf->timestamp; | ||
90 | } | ||
91 | |||
92 | iio_push_to_buffers(idev, st->buffer); | ||
93 | 87 | ||
94 | iio_trigger_notify_done(idev->trig); | 88 | iio_trigger_notify_done(idev->trig); |
95 | 89 | ||