aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-multitouch.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@enac.fr>2011-01-31 05:28:20 -0500
committerJiri Kosina <jkosina@suse.cz>2011-01-31 09:16:08 -0500
commit1e9cf35b995610e7ba2934d3dc92e3a03fa361a1 (patch)
tree48613e0e9f0da63658090e4c18a842bfaa76dd00 /drivers/hid/hid-multitouch.c
parentb79b36be56da0ba61fa10a3fa96939c3a3eb499a (diff)
HID: hid-multitouch: Rename MT_CLS_DUAL1 and MT_CLS_DUAL2
This patch renames MT_CLS_DUAL1 to MT_CLS_DUAL_INRANGE_CONTACTID and MT_CLS_DUAL2 to MT_CLS_DUAL_INRANGE_CONTACTNUMBER for better readability. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr> Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
-rw-r--r--drivers/hid/hid-multitouch.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 86863a32b089..b976d10366e1 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -65,10 +65,10 @@ struct mt_class {
65}; 65};
66 66
67/* classes of device behavior */ 67/* classes of device behavior */
68#define MT_CLS_DEFAULT 1 68#define MT_CLS_DEFAULT 1
69#define MT_CLS_DUAL1 2 69#define MT_CLS_DUAL_INRANGE_CONTACTID 2
70#define MT_CLS_DUAL2 3 70#define MT_CLS_DUAL_INRANGE_CONTACTNUMBER 3
71#define MT_CLS_CYPRESS 4 71#define MT_CLS_CYPRESS 4
72 72
73/* 73/*
74 * these device-dependent functions determine what slot corresponds 74 * these device-dependent functions determine what slot corresponds
@@ -106,11 +106,11 @@ struct mt_class mt_classes[] = {
106 { .name = MT_CLS_DEFAULT, 106 { .name = MT_CLS_DEFAULT,
107 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP, 107 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP,
108 .maxcontacts = 10 }, 108 .maxcontacts = 10 },
109 { .name = MT_CLS_DUAL1, 109 { .name = MT_CLS_DUAL_INRANGE_CONTACTID,
110 .quirks = MT_QUIRK_VALID_IS_INRANGE | 110 .quirks = MT_QUIRK_VALID_IS_INRANGE |
111 MT_QUIRK_SLOT_IS_CONTACTID, 111 MT_QUIRK_SLOT_IS_CONTACTID,
112 .maxcontacts = 2 }, 112 .maxcontacts = 2 },
113 { .name = MT_CLS_DUAL2, 113 { .name = MT_CLS_DUAL_INRANGE_CONTACTNUMBER,
114 .quirks = MT_QUIRK_VALID_IS_INRANGE | 114 .quirks = MT_QUIRK_VALID_IS_INRANGE |
115 MT_QUIRK_SLOT_IS_CONTACTNUMBER, 115 MT_QUIRK_SLOT_IS_CONTACTNUMBER,
116 .maxcontacts = 2 }, 116 .maxcontacts = 2 },
@@ -466,15 +466,15 @@ static const struct hid_device_id mt_devices[] = {
466 USB_DEVICE_ID_CYPRESS_TRUETOUCH) }, 466 USB_DEVICE_ID_CYPRESS_TRUETOUCH) },
467 467
468 /* GeneralTouch panel */ 468 /* GeneralTouch panel */
469 { .driver_data = MT_CLS_DUAL2, 469 { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTNUMBER,
470 HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH, 470 HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
471 USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) }, 471 USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) },
472 472
473 /* PixCir-based panels */ 473 /* PixCir-based panels */
474 { .driver_data = MT_CLS_DUAL1, 474 { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
475 HID_USB_DEVICE(USB_VENDOR_ID_HANVON, 475 HID_USB_DEVICE(USB_VENDOR_ID_HANVON,
476 USB_DEVICE_ID_HANVON_MULTITOUCH) }, 476 USB_DEVICE_ID_HANVON_MULTITOUCH) },
477 { .driver_data = MT_CLS_DUAL1, 477 { .driver_data = MT_CLS_DUAL_INRANGE_CONTACTID,
478 HID_USB_DEVICE(USB_VENDOR_ID_CANDO, 478 HID_USB_DEVICE(USB_VENDOR_ID_CANDO,
479 USB_DEVICE_ID_CANDO_PIXCIR_MULTI_TOUCH) }, 479 USB_DEVICE_ID_CANDO_PIXCIR_MULTI_TOUCH) },
480 480