summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-triggered-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/industrialio-triggered-event.c')
-rw-r--r--drivers/iio/industrialio-triggered-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-triggered-event.c b/drivers/iio/industrialio-triggered-event.c
index 53da9ab17a62..4bedc65c9fe3 100644
--- a/drivers/iio/industrialio-triggered-event.c
+++ b/drivers/iio/industrialio-triggered-event.c
@@ -37,7 +37,7 @@ int iio_triggered_event_setup(struct iio_dev *indio_dev,
indio_dev,
"%s_consumer%d",
indio_dev->name,
- indio_dev->id);
+ iio_device_id(indio_dev));
if (indio_dev->pollfunc_event == NULL)
return -ENOMEM;