Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: magnetometer: rm3100: do not explicity set INDIO_BUFFER_TRIGGERED mode

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>

authored by

Marcus Folkesson and committed by
Jonathan Cameron
98a30ae0 f1e252c5

+1 -1
+1 -1
drivers/iio/magnetometer/rm3100-core.c
··· 544 544 indio_dev->info = &rm3100_info; 545 545 indio_dev->channels = rm3100_channels; 546 546 indio_dev->num_channels = ARRAY_SIZE(rm3100_channels); 547 - indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED; 547 + indio_dev->modes = INDIO_DIRECT_MODE; 548 548 549 549 if (!irq) 550 550 data->use_interrupt = false;