summaryrefslogtreecommitdiff
path: root/drivers/iio/chemical/ens160_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/chemical/ens160_core.c')
-rw-r--r--drivers/iio/chemical/ens160_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/chemical/ens160_core.c b/drivers/iio/chemical/ens160_core.c
index 152f81ff57e3..6cec60074827 100644
--- a/drivers/iio/chemical/ens160_core.c
+++ b/drivers/iio/chemical/ens160_core.c
@@ -267,8 +267,8 @@ static irqreturn_t ens160_trigger_handler(int irq, void *p)
if (ret)
goto err;
- iio_push_to_buffers_with_timestamp(indio_dev, &data->scan,
- pf->timestamp);
+ iio_push_to_buffers_with_ts(indio_dev, &data->scan, sizeof(data->scan),
+ pf->timestamp);
err:
iio_trigger_notify_done(indio_dev->trig);