HID: add two missing usages for digitizer
authorXiaolei Yu <dreifachstein@gmail.com>
Sat, 25 Mar 2017 06:04:58 +0000 (14:04 +0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 30 Mar 2017 09:07:03 +0000 (11:07 +0200)
They are part of HUTRR34 for multi-touch digitizers:

0x0E    Device configuration    CA      16.7
0x23    Device settings         CL      16.7

Signed-off-by: Xiaolei Yu <dreifachstein@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-debug.c
include/linux/hid.h

index acfb522a432ae51ff16d0a475783eed167969d7c..5a0061c0ee87a7f3c242345bec24b9f5fb829bf4 100644 (file)
@@ -140,9 +140,11 @@ static const struct hid_usage_entry hid_usage_table[] = {
     {0, 0x03, "LightPen"},
     {0, 0x04, "TouchScreen"},
     {0, 0x05, "TouchPad"},
+    {0, 0x0e, "DeviceConfiguration"},
     {0, 0x20, "Stylus"},
     {0, 0x21, "Puck"},
     {0, 0x22, "Finger"},
+    {0, 0x23, "DeviceSettings"},
     {0, 0x30, "TipPressure"},
     {0, 0x31, "BarrelPressure"},
     {0, 0x32, "InRange"},
index 28f38e2b8f309387b7a983937b50908c3095f7d9..536f11fd21d5122a3ca0d917e947132854fd11fb 100644 (file)
@@ -268,6 +268,8 @@ struct hid_item {
 #define HID_CP_APPLICATIONLAUNCHBUTTONS        0x000c0180
 #define HID_CP_GENERICGUIAPPLICATIONCONTROLS   0x000c0200
 
+#define HID_DG_DEVICECONFIG    0x000d000e
+#define HID_DG_DEVICESETTINGS  0x000d0023
 #define HID_DG_CONFIDENCE      0x000d0047
 #define HID_DG_WIDTH           0x000d0048
 #define HID_DG_HEIGHT          0x000d0049