Skip to content

Commit

Permalink
iio: inv_mpu6050: Remove superfluous indio_dev->modes assignment
Browse files Browse the repository at this point in the history
The inv_mpu6050 driver manually assigns the indio_dev->modes property. But
this is not necessary since it will be setup in iio_trigger_buffer_setup().

Remove the manual assignment.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Acked-by: Jean-Baptiste Maneyrol <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
larsclausen authored and jic23 committed Apr 7, 2021
1 parent 4c82224 commit 0d41da0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,6 @@ int inv_mpu_core_probe(struct regmap *regmap, int irq, const char *name,
}

indio_dev->info = &mpu_info;
indio_dev->modes = INDIO_BUFFER_TRIGGERED;

result = devm_iio_triggered_buffer_setup(dev, indio_dev,
iio_pollfunc_store_time,
Expand Down

0 comments on commit 0d41da0

Please sign in to comment.