WSL2-Linux-Kernel/drivers/iio/magnetometer
Alexandru Ardelean 7061803522 iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER
During commit 067fda1c06 ("iio: hid-sensors: move triggered buffer
setup into hid_sensor_setup_trigger"), the
iio_triggered_buffer_{setup,cleanup}() functions got moved under the
hid-sensor-trigger module.

The above change works fine, if any of the sensors get built. However, when
only the common hid-sensor-trigger module gets built (and none of the
drivers), then the IIO_TRIGGERED_BUFFER symbol isn't selected/enforced.

Previously, each driver would enforce/select the IIO_TRIGGERED_BUFFER
symbol. With this change the HID_SENSOR_IIO_TRIGGER (for the
hid-sensor-trigger module) will enforce that IIO_TRIGGERED_BUFFER gets
selected.

All HID sensor drivers select the HID_SENSOR_IIO_TRIGGER symbol. So, this
change removes the IIO_TRIGGERED_BUFFER enforcement from each driver.

Fixes: 067fda1c06 ("iio: hid-sensors: move triggered buffer setup into hid_sensor_setup_trigger")
Reported-by: Thomas Deutschmann <whissi@gentoo.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20210414084955.260117-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-05-10 14:01:48 +01:00
..
Kconfig iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-10 14:01:48 +01:00
Makefile iio: magnetometer: Add driver for Yamaha YAS530 2021-01-09 21:52:46 +00:00
ak8974.c Second set of features and cleanups for IIO in 5.10 2020-09-22 09:45:11 +02:00
ak8975.c Second set of features and cleanups for IIO in 5.10 2020-09-22 09:45:11 +02:00
bmc150_magn.c iio: fix devm_iio_trigger_alloc with parent.cocci 2021-03-25 19:13:50 +00:00
bmc150_magn.h
bmc150_magn_i2c.c iio: magnetometer: bmc150: Add proper compatible for BMM150 2020-07-07 20:24:07 +01:00
bmc150_magn_spi.c iio: magn: bmc150: Use vsprintf extension %pe for symbolic error name 2020-04-19 16:56:18 +01:00
hid-sensor-magn-3d.c iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common 2021-03-11 20:47:09 +00:00
hmc5843.h iio: magnetometer: hmc5843: 'hmc5843_pm_ops' is unused in 1 of 3 files including hmc5843_core.h 2020-07-20 09:03:14 +01:00
hmc5843_core.c iio:magn:hmc5843: Fix passing true where iio_shared_by enum required. 2020-09-21 18:54:18 +01:00
hmc5843_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
hmc5843_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mag3110.c iio:magnetometer:mag3110: Fix alignment and data leak issues. 2020-12-03 19:40:27 +00:00
mmc35240.c iio: magnetometer: mmc35240: Fix function header formatting 2020-07-20 09:03:08 +01:00
rm3100-core.c iio: fix devm_iio_trigger_alloc with parent.cocci 2021-03-25 19:13:50 +00:00
rm3100-i2c.c
rm3100-spi.c
rm3100.h
st_magn.h iio:magnetometer: Add Support for ST IIS2MDC 2021-03-25 19:13:52 +00:00
st_magn_buffer.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
st_magn_core.c iio:magnetometer: Add Support for ST IIS2MDC 2021-03-25 19:13:52 +00:00
st_magn_i2c.c iio:magnetometer: Add Support for ST IIS2MDC 2021-03-25 19:13:52 +00:00
st_magn_spi.c iio:magnetometer: Add Support for ST IIS2MDC 2021-03-25 19:13:52 +00:00
yamaha-yas530.c iio: magnetometer: yas530: Include right header 2021-04-07 08:36:40 +01:00