HID: multitouch: Support ALPS PTP stick with pid 0x120A
authorShrirang Bagul <shrirang.bagul@canonical.com>
Thu, 10 Aug 2017 09:54:01 +0000 (17:54 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 6 Sep 2017 09:05:34 +0000 (11:05 +0200)
This patch adds ALPS PTP sticks with pid/device id 0x120A to the list of
devices supported by hid-multitouch.

Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-multitouch.c

index a98919199858717ecd173ba2ef04f014edcb109f..832897d4a849ddd243330c2532758d91ec14de2d 100644 (file)
@@ -75,6 +75,7 @@
 
 #define USB_VENDOR_ID_ALPS_JP          0x044E
 #define HID_DEVICE_ID_ALPS_U1_DUAL     0x120B
+#define HID_DEVICE_ID_ALPS_U1_PTP_2            0x120A
 #define HID_DEVICE_ID_ALPS_U1_DUAL_PTP 0x121F
 #define HID_DEVICE_ID_ALPS_U1_DUAL_3BTN_PTP    0x1220
 
index 9e8c4d2ba11d2cc7c2559f34dc46fe646640e131..c78625dceced9b88266a721404054b5d03e0a600 100644 (file)
@@ -1419,6 +1419,10 @@ static const struct hid_device_id mt_devices[] = {
                HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
                        USB_VENDOR_ID_ALPS_JP,
                        HID_DEVICE_ID_ALPS_U1_DUAL_3BTN_PTP) },
+       { .driver_data = MT_CLS_WIN_8_DUAL,
+               HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
+                       USB_VENDOR_ID_ALPS_JP,
+                       HID_DEVICE_ID_ALPS_U1_PTP_2) },
 
        /* Lenovo X1 TAB Gen 2 */
        { .driver_data = MT_CLS_WIN_8_DUAL,