@@ -120,6 +120,7 @@ struct mt_device {
#define MT_CLS_INRANGE_CONTACTNUMBER 0x0009
#define MT_CLS_ALWAYS_TRUE 0x000a
#define MT_CLS_CONTACT_ID 0x0011
+#define MT_CLS_MINUS_ONE 0x0012
/* vendor specific classes */
#define MT_CLS_3M 0x0101
@@ -186,6 +187,10 @@ static struct mt_class mt_classes[] = {
.quirks = MT_QUIRK_ALWAYS_VALID |
MT_QUIRK_CONTACT_CNT_ACCURATE |
MT_QUIRK_SLOT_IS_CONTACTID },
+ { .name = MT_CLS_MINUS_ONE,
+ .quirks = MT_QUIRK_ALWAYS_VALID |
+ MT_QUIRK_CONTACT_CNT_ACCURATE |
+ MT_QUIRK_SLOT_IS_CONTACTID_MINUS_ONE },
/*
* vendor specific classes
@@ -1101,10 +1106,10 @@ static const struct hid_device_id mt_devices[] = {
USB_DEVICE_ID_LG_MULTITOUCH) },
/* Lumio panels */
- { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
+ { .driver_data = MT_CLS_MINUS_ONE,
MT_USB_DEVICE(USB_VENDOR_ID_LUMIO,
USB_DEVICE_ID_CRYSTALTOUCH) },
- { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
+ { .driver_data = MT_CLS_MINUS_ONE,
MT_USB_DEVICE(USB_VENDOR_ID_LUMIO,
USB_DEVICE_ID_CRYSTALTOUCH_DUAL) },
Not very different in terms of processing time. However, this uniformizes the handling of devices. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> --- drivers/hid/hid-multitouch.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)