linux/drivers/iio/common/hid-sensors
Srinivas Pandruvada 751d17e23a 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>
2013-12-02 21:05:32 +00:00
..
Kconfig iio: hid-sensors: Fix power and report state 2013-12-02 21:05:32 +00:00
Makefile iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00
hid-sensor-attributes.c hid: iio: rename struct hid_sensor_iio_common to hid_sensor_common 2013-01-06 11:48:11 +00:00
hid-sensor-trigger.c iio: hid-sensors: Fix power and report state 2013-12-02 21:05:32 +00:00
hid-sensor-trigger.h iio: hid_Sensors: fix crash during trigger unregister 2013-11-02 19:07:06 +00:00