linux/drivers/iio/humidity
Alexandru Ardelean 2c3b4375e1 iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER
[ Upstream commit 7061803522 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:13:13 +02:00
..
am2315.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dht11.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
hdc100x.c iio:humidity:hdc100x: Drop of_match_ptr protection. 2020-09-21 18:41:33 +01:00
hdc2010.c drivers/iio/humidity/hdc2010.c:305:2-3: Unneeded semicolon 2020-09-06 16:05:56 +01:00
hid-sensor-humidity.c iio: hid-sensor-humidity: Fix alignment issue of timestamp channel 2021-03-25 09:04:16 +01:00
hts221_buffer.c Linux 5.8-rc6 2020-07-20 09:37:31 +02:00
hts221_core.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
hts221_i2c.c iio: humidity: hts221: Drop unneeded casting when print error code 2020-03-21 10:27:15 +00:00
hts221_spi.c iio: humidity: hts221: Drop unneeded casting when print error code 2020-03-21 10:27:15 +00:00
hts221.h Linux 5.8-rc6 2020-07-20 09:37:31 +02:00
htu21.c iio:humidity:htu21: Drop of_match_ptr protection 2020-09-21 18:41:34 +01:00
Kconfig iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-19 10:13:13 +02:00
Makefile iio: humidity: Add TI HDC20x0 support 2020-09-03 19:40:44 +01:00
si7005.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
si7020.c iio:humidity:si7020: Drop of_match_ptr protection 2020-09-21 18:41:34 +01:00