HID: multitouch: Add support for CJTouch MultiTouch
authorYang Bo <linuxsea@163.com>
Mon, 20 Jul 2015 16:40:28 +0000 (09:40 -0700)
committerJiri Kosina <jkosina@suse.com>
Fri, 24 Jul 2015 12:56:19 +0000 (14:56 +0200)
Add device IDs for CJTouch 0020 and 0040 panels.

Signed-off-by: Yang Bo <linuxsea@163.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/Kconfig
drivers/hid/hid-ids.h
drivers/hid/hid-multitouch.c

index cc4c6649d19503e236f905e8feafe21440237fea..57c94d7d5834bc7ccd1bb4a4ff0ca9d60d548f21 100644 (file)
@@ -480,6 +480,7 @@ config HID_MULTITOUCH
          - Atmel panels
          - Cando dual touch panels
          - Chunghwa panels
+         - CJTouch panels
          - CVTouch panels
          - Cypress TrueTouch panels
          - Elan Microelectronics touch panels
index b04b0820d816323a01d147c702503b0797734ea4..591b7d06f54d3e813a22ec891b7b98a050470bcf 100644 (file)
 
 #define USB_VENDOR_ID_CIDC             0x1677
 
+#define USB_VENDOR_ID_CJTOUCH          0x24b8
+#define USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0020 0x0020
+#define USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0040 0x0040
+
 #define USB_VENDOR_ID_CMEDIA           0x0d8c
 #define USB_DEVICE_ID_CM109            0x000e
 
index 6a9b05b328a9d40e06b09ed8f8c6e6010669374b..ab0434f86f49d6841ae3f33cd42b4782e3d6bdb4 100644 (file)
@@ -1138,6 +1138,14 @@ static const struct hid_device_id mt_devices[] = {
                MT_USB_DEVICE(USB_VENDOR_ID_CHUNGHWAT,
                        USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH) },
 
+       /* CJTouch panels */
+       { .driver_data = MT_CLS_NSMU,
+               MT_USB_DEVICE(USB_VENDOR_ID_CJTOUCH,
+                       USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0020) },
+       { .driver_data = MT_CLS_NSMU,
+               MT_USB_DEVICE(USB_VENDOR_ID_CJTOUCH,
+                       USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0040) },
+
        /* CVTouch panels */
        { .driver_data = MT_CLS_NSMU,
                MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,