summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ad7291.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/ad7291.c')
-rw-r--r--drivers/iio/adc/ad7291.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ad7291.c b/drivers/iio/adc/ad7291.c
index c0eabf156702..037630932749 100644
--- a/drivers/iio/adc/ad7291.c
+++ b/drivers/iio/adc/ad7291.c
@@ -115,7 +115,7 @@ static irqreturn_t ad7291_event_handler(int irq, void *private)
u16 t_status, v_status;
u16 command;
int i;
- s64 timestamp = iio_get_time_ns();
+ s64 timestamp = iio_get_time_ns(indio_dev);
if (ad7291_i2c_read(chip, AD7291_T_ALERT_STATUS, &t_status))
return IRQ_HANDLED;