summaryrefslogtreecommitdiff
path: root/drivers/iio/gyro/adxrs290.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/gyro/adxrs290.c')
-rw-r--r--drivers/iio/gyro/adxrs290.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/gyro/adxrs290.c b/drivers/iio/gyro/adxrs290.c
index cec5e1f17c22..3e0734ddafe3 100644
--- a/drivers/iio/gyro/adxrs290.c
+++ b/drivers/iio/gyro/adxrs290.c
@@ -589,7 +589,7 @@ static int adxrs290_probe_trigger(struct iio_dev *indio_dev)
st->dready_trig = devm_iio_trigger_alloc(&st->spi->dev, "%s-dev%d",
indio_dev->name,
- indio_dev->id);
+ iio_device_id(indio_dev));
if (!st->dready_trig)
return -ENOMEM;