aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/Kconfig
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2015-04-10 14:22:22 -0400
committerJiri Kosina <jkosina@suse.cz>2015-04-10 16:22:55 -0400
commit4a7de0519df5e8fb89cef6ee062330ffe4b50a4d (patch)
tree587a0694e6db263f10290d3f3b4efc0619ca6469 /drivers/hid/Kconfig
parent62fad137bb1fc1dd08352aba18e7e13d0d682ef3 (diff)
HID: sensor: Custom and Generic sensor support
HID Sensor Spec defines two usage ids for custom sensors HID_USAGE_SENSOR_TYPE_OTHER_CUSTOM (0x09, 0xE1) HID_USAGE_SENSOR_TYPE_OTHER_GENERIC(0x09, 0xE2) In addition the standard also defines usage ids for custom fields. The purpose of these sensors is to extend the functionality or provide a way to obfuscate the data being communicated by a sensor. Without knowing the mapping between the data and its encapsulated form, it is difficult for an driver to determine what data is being communicated by the sensor. This allows some differentiating use cases, where vendor can provide applications. Since these can't be represented by standard sensor interfaces like IIO, we present these as fields with - type (input/output) - units - min/max - get/set value In addition an dev interface to transfer report events. Details about this interface is described in /Documentation/hid/hid-sensor.txt. Manufacturers should not use these ids for any standard sensors, otherwise the the product/vendor id can be added to black list. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Reviewed-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r--drivers/hid/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 152b006833cd..7de0e9ed98f3 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -885,6 +885,21 @@ config HID_SENSOR_HUB
885 for events and handle data streams. Each sensor driver can format 885 for events and handle data streams. Each sensor driver can format
886 data and present to user mode using input or IIO interface. 886 data and present to user mode using input or IIO interface.
887 887
888config HID_SENSOR_CUSTOM_SENSOR
889 tristate "HID Sensors hub custom sensor support"
890 depends on HID_SENSOR_HUB
891 default n
892 ---help---
893 HID Sensor hub specification allows definition of some custom and
894 generic sensors. Unlike other HID sensors, they can't be exported
895 via Linux IIO because of custom fields. This is up to the manufacturer
896 to decide how to interpret these special sensor ids and process in
897 the user space. Currently some manufacturers are using these ids for
898 sensor calibration and debugging other sensors. Manufacturers
899 should't use these special custom sensor ids to export any of the
900 standard sensors.
901 Select this config option for custom/generic sensor support.
902
888endmenu 903endmenu
889 904
890endif # HID 905endif # HID