HID: sensor-hub: Add quirk for Lenovo Yoga 900 with ITE Chips
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 28 Dec 2015 15:01:31 +0000 (07:01 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 8 Jan 2016 09:54:55 +0000 (10:54 +0100)
This needs same quirk as applied to other YOGA sensor hubs.  Refer to commit
21589ebda681 ("HID: sensor-hub: Add in quirk for Lenovo Yogas with ITE")

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

index c39fbc4148896140335110f4a7a74fa81f854f06..dc8a95d3fa08e4d183a7d0441a86602058ec1e51 100644 (file)
 #define USB_VENDOR_ID_ITE               0x048d
 #define USB_DEVICE_ID_ITE_LENOVO_YOGA   0x8386
 #define USB_DEVICE_ID_ITE_LENOVO_YOGA2  0x8350
+#define USB_DEVICE_ID_ITE_LENOVO_YOGA900       0x8396
 
 #define USB_VENDOR_ID_JABRA            0x0b0e
 #define USB_DEVICE_ID_JABRA_SPEAK_410  0x0412
index 92870cdb52d946a7408463a5b249129befd5e91d..58ed8f25ab2157b1852e2796c0b16ef5d4b3f18a 100644 (file)
@@ -794,6 +794,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_YOGA2),
                        .driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
+       { 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, HID_ANY_ID,
                     HID_ANY_ID) },
        { }