aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/gyro/itg3200_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/gyro/itg3200_buffer.c')
-rw-r--r--drivers/iio/gyro/itg3200_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/gyro/itg3200_buffer.c b/drivers/iio/gyro/itg3200_buffer.c
index af0aaa146f0c..04dd6a7969ea 100644
--- a/drivers/iio/gyro/itg3200_buffer.c
+++ b/drivers/iio/gyro/itg3200_buffer.c
@@ -114,7 +114,7 @@ int itg3200_probe_trigger(struct iio_dev *indio_dev)
struct itg3200 *st = iio_priv(indio_dev);
st->trig = iio_trigger_alloc(&st->i2c->dev, "%s-dev%d", indio_dev->name,
- indio_dev->id);
+ iio_device_id(indio_dev));
if (!st->trig)
return -ENOMEM;