diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2013-11-28 02:19:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-03 01:05:32 +0400 |
commit | 751d17e23a9f7c8e0bca5c0b2e8d39af655ecd2a (patch) | |
tree | cd586d7db56efdc9d4ef8d5dee1f008a137f354e /drivers/iio/common/hid-sensors/Kconfig | |
parent | 9f740ffa8134aaef770f964485dac3ed6780d8b7 (diff) | |
download | linux-751d17e23a9f7c8e0bca5c0b2e8d39af655ecd2a.tar.xz |
iio: hid-sensors: Fix power and report state
In the original HID sensor hub firmwares all Named array enums were
to 0-based. But the most recent hub implemented as 1-based,
because of the implementation by one of the major OS vendor.
Using logical minimum for the field as the base of enum. So we add
logical minimum to the selector values before setting those fields.
Some sensor hub FWs already changed logical minimum from 0 to 1
to reflect this and hope every other vendor will follow.
There is no easy way to add a common HID quirk for NAry elements,
even if the standard specifies these field as NAry, the collection
used to describe selectors is still just "logical".
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/common/hid-sensors/Kconfig')
-rw-r--r-- | drivers/iio/common/hid-sensors/Kconfig | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/iio/common/hid-sensors/Kconfig b/drivers/iio/common/hid-sensors/Kconfig index 1178121b55b0..39188b72cd3b 100644 --- a/drivers/iio/common/hid-sensors/Kconfig +++ b/drivers/iio/common/hid-sensors/Kconfig @@ -25,13 +25,4 @@ config HID_SENSOR_IIO_TRIGGER If this driver is compiled as a module, it will be named hid-sensor-trigger. -config HID_SENSOR_ENUM_BASE_QUIRKS - bool "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 |