]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: magnetometer: rm3100: do not explicity set INDIO_BUFFER_TRIGGERED mode
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Sat, 2 Jul 2022 08:50:05 +0000 (10:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Jul 2022 16:57:22 +0000 (17:57 +0100)
The core sets INDIO_BUFFER_TRIGGERED as part of
devm_iio_triggered_buffer_setup().

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20220702085005.31666-1-marcus.folkesson@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/rm3100-core.c

index 707ba25360b808157e2f1547b9cafe0482e44d93..69938204456f8bb0c1c4777d93ee7d0b8f2421dd 100644 (file)
@@ -544,7 +544,7 @@ int rm3100_common_probe(struct device *dev, struct regmap *regmap, int irq)
        indio_dev->info = &rm3100_info;
        indio_dev->channels = rm3100_channels;
        indio_dev->num_channels = ARRAY_SIZE(rm3100_channels);
-       indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
+       indio_dev->modes = INDIO_DIRECT_MODE;
 
        if (!irq)
                data->use_interrupt = false;