mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
iio: inv_mpu6050: Remove superfluous indio_dev->modes assignment
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 <lars@metafoo.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Link: https://lore.kernel.org/r/20210325131046.13383-1-lars@metafoo.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
4c822244bf
commit
0d41da0374
1 changed files with 0 additions and 1 deletions
|
@ -1591,7 +1591,6 @@ int inv_mpu_core_probe(struct regmap *regmap, int irq, const char *name,
|
||||||
}
|
}
|
||||||
|
|
||||||
indio_dev->info = &mpu_info;
|
indio_dev->info = &mpu_info;
|
||||||
indio_dev->modes = INDIO_BUFFER_TRIGGERED;
|
|
||||||
|
|
||||||
result = devm_iio_triggered_buffer_setup(dev, indio_dev,
|
result = devm_iio_triggered_buffer_setup(dev, indio_dev,
|
||||||
iio_pollfunc_store_time,
|
iio_pollfunc_store_time,
|
||||||
|
|
Loading…
Reference in a new issue