Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73c6768b authored by srinivas pandruvada's avatar srinivas pandruvada Committed by Jonathan Cameron
Browse files

iio: hid-sensors: Common attribute and trigger



This patch contains the common code, which is used by all HID sensors.
There are some common set of attributes, which every hid sensor
needs it. This patch contains all such attributes processing.
Also the trigger interface is common among all HID sensors. This
patch contains common trigger functions utilized by all HID sensors.

Signed-off-by: default avatarsrinivas pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 401ca24f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -59,5 +59,6 @@ source "drivers/iio/amplifiers/Kconfig"
source "drivers/iio/light/Kconfig"
source "drivers/iio/frequency/Kconfig"
source "drivers/iio/dac/Kconfig"
source "drivers/iio/common/Kconfig"

endif # IIO
+1 −0
Original line number Diff line number Diff line
@@ -15,3 +15,4 @@ obj-y += amplifiers/
obj-y += light/
obj-y += frequency/
obj-y += dac/
obj-y += common/
+5 −0
Original line number Diff line number Diff line
#
# IIO common modules
#

source "drivers/iio/common/hid-sensors/Kconfig"
+9 −0
Original line number Diff line number Diff line
#
# Makefile for the IIO common modules.
# Common modules contains modules, which can be shared among multiple
# IIO modules. For example if the trigger processing is common for
# multiple IIO modules then this can be moved to a common module
# instead of duplicating in each module.
#

obj-y += hid-sensors/
+26 −0
Original line number Diff line number Diff line
#
# 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 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_ENUM_BASE_QUIRKS
	tristate "ENUM base quirks for HID Sensor IIO drivers"
	depends on HID_SENSOR_IIO_COMMON
	help
	  Say yes here to build support for sensor hub FW using
	  enumeration, which is using 1 as base instead of 0.
	  Since logical minimum is still set 0 instead of 1,
	  there is no easy way to differentiate.

endmenu
Loading