summaryrefslogtreecommitdiff
path: root/drivers/iio/light/acpi-als.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/acpi-als.c')
-rw-r--r--drivers/iio/light/acpi-als.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/acpi-als.c b/drivers/iio/light/acpi-als.c
index 53201d99a16c..f0b47c501f4e 100644
--- a/drivers/iio/light/acpi-als.c
+++ b/drivers/iio/light/acpi-als.c
@@ -118,7 +118,7 @@ static void acpi_als_notify(struct acpi_device *device, u32 event)
struct iio_dev *indio_dev = acpi_driver_data(device);
struct acpi_als *als = iio_priv(indio_dev);
s32 *buffer = als->evt_buffer;
- s64 time_ns = iio_get_time_ns();
+ s64 time_ns = iio_get_time_ns(indio_dev);
s32 val;
int ret;