]> git.karo-electronics.de Git - linux-beck.git/commitdiff
HID: hid-sensor-hub: Add ISH quirk
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sun, 7 Aug 2016 09:25:38 +0000 (02:25 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 17 Aug 2016 09:13:08 +0000 (11:13 +0200)
Need enum quirk to change the base of enums to 1 for
power and report descriptors.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sensor-hub.c

index 3d5ba5b51af3aa4dc70197b9453955fb17cc3437..658a607dc6d9eb1f7c57da3c4afe065e32ffd156 100644 (file)
@@ -16,6 +16,7 @@
  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  *
  */
+
 #include <linux/device.h>
 #include <linux/hid.h>
 #include <linux/module.h>
@@ -798,6 +799,9 @@ static const struct hid_device_id sensor_hub_devices[] = {
        { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_ITE,
                        USB_DEVICE_ID_ITE_LENOVO_YOGA900),
                        .driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
+       { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_INTEL_0,
+                       0x22D8),
+                       .driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
        { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, HID_ANY_ID,
                     HID_ANY_ID) },
        { }