mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
7061803522
During commit067fda1c06
("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>
31 lines
965 B
Plaintext
31 lines
965 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Hid Sensor common modules
|
|
#
|
|
menu "Hid Sensor IIO Common"
|
|
|
|
config HID_SENSOR_IIO_COMMON
|
|
tristate "Common modules for all HID Sensor IIO drivers"
|
|
depends on HID_SENSOR_HUB
|
|
select HID_SENSOR_IIO_TRIGGER if IIO_BUFFER
|
|
help
|
|
Say yes here to build support for HID sensor to use
|
|
HID sensor common processing for attributes and IIO triggers.
|
|
There are many attributes which can be shared among multiple
|
|
HID sensor drivers, this module contains processing for those
|
|
attributes.
|
|
|
|
config HID_SENSOR_IIO_TRIGGER
|
|
tristate "Common module (trigger) for all HID Sensor IIO drivers"
|
|
depends on HID_SENSOR_HUB && HID_SENSOR_IIO_COMMON && IIO_BUFFER
|
|
select IIO_TRIGGER
|
|
select IIO_TRIGGERED_BUFFER
|
|
help
|
|
Say yes here to build trigger support for HID sensors.
|
|
Triggers will be send if all requested attributes were read.
|
|
|
|
If this driver is compiled as a module, it will be named
|
|
hid-sensor-trigger.
|
|
|
|
endmenu
|