summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ad7779.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/ad7779.c')
-rw-r--r--drivers/iio/adc/ad7779.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/adc/ad7779.c b/drivers/iio/adc/ad7779.c
index a5d87faa5e12..845adc510239 100644
--- a/drivers/iio/adc/ad7779.c
+++ b/drivers/iio/adc/ad7779.c
@@ -595,7 +595,8 @@ static irqreturn_t ad7779_trigger_handler(int irq, void *p)
goto exit_handler;
}
- iio_push_to_buffers_with_timestamp(indio_dev, &st->data, pf->timestamp);
+ iio_push_to_buffers_with_ts(indio_dev, &st->data, sizeof(st->data),
+ pf->timestamp);
exit_handler:
iio_trigger_notify_done(indio_dev->trig);