aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2012-01-31 03:07:33 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-01-31 03:14:13 -0500
commit8b4a0c1fe3b03c0cfe829413481d69c2e6fd844c (patch)
treed1383fdc459d6acaa555cc087126a15aab6153f7 /drivers/input
parent393f9ffb7956c0ab8edb971d2c98d94aad9eeef8 (diff)
Input: wacom - use BTN_TOOL_FINGER to indicate touch device type
Tested-by: Chris Bagwell <chris@cnpbagwell.com> Reviewed-by: Chris Bagwell <chris@cnpbagwell.com> Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/tablet/wacom_sys.c6
-rw-r--r--drivers/input/tablet/wacom_wac.c4
2 files changed, 3 insertions, 7 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index 7e63183a6c68..c9588eececfb 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -176,7 +176,7 @@ static int wacom_parse_logical_collection(unsigned char *report,
176 176
177 /* Logical collection is only used by 3rd gen Bamboo Touch */ 177 /* Logical collection is only used by 3rd gen Bamboo Touch */
178 features->pktlen = WACOM_PKGLEN_BBTOUCH3; 178 features->pktlen = WACOM_PKGLEN_BBTOUCH3;
179 features->device_type = BTN_TOOL_DOUBLETAP; 179 features->device_type = BTN_TOOL_FINGER;
180 180
181 /* 181 /*
182 * Stylus and Touch have same active area 182 * Stylus and Touch have same active area
@@ -286,12 +286,10 @@ static int wacom_parse_hid(struct usb_interface *intf,
286 if (features->type == TABLETPC2FG) { 286 if (features->type == TABLETPC2FG) {
287 /* need to reset back */ 287 /* need to reset back */
288 features->pktlen = WACOM_PKGLEN_TPC2FG; 288 features->pktlen = WACOM_PKGLEN_TPC2FG;
289 features->device_type = BTN_TOOL_DOUBLETAP;
290 } 289 }
291 if (features->type == BAMBOO_PT) { 290 if (features->type == BAMBOO_PT) {
292 /* need to reset back */ 291 /* need to reset back */
293 features->pktlen = WACOM_PKGLEN_BBTOUCH; 292 features->pktlen = WACOM_PKGLEN_BBTOUCH;
294 features->device_type = BTN_TOOL_DOUBLETAP;
295 features->x_phy = 293 features->x_phy =
296 get_unaligned_le16(&report[i + 5]); 294 get_unaligned_le16(&report[i + 5]);
297 features->x_max = 295 features->x_max =
@@ -325,7 +323,6 @@ static int wacom_parse_hid(struct usb_interface *intf,
325 if (features->type == TABLETPC2FG) { 323 if (features->type == TABLETPC2FG) {
326 /* need to reset back */ 324 /* need to reset back */
327 features->pktlen = WACOM_PKGLEN_TPC2FG; 325 features->pktlen = WACOM_PKGLEN_TPC2FG;
328 features->device_type = BTN_TOOL_DOUBLETAP;
329 features->y_max = 326 features->y_max =
330 get_unaligned_le16(&report[i + 3]); 327 get_unaligned_le16(&report[i + 3]);
331 features->y_phy = 328 features->y_phy =
@@ -334,7 +331,6 @@ static int wacom_parse_hid(struct usb_interface *intf,
334 } else if (features->type == BAMBOO_PT) { 331 } else if (features->type == BAMBOO_PT) {
335 /* need to reset back */ 332 /* need to reset back */
336 features->pktlen = WACOM_PKGLEN_BBTOUCH; 333 features->pktlen = WACOM_PKGLEN_BBTOUCH;
337 features->device_type = BTN_TOOL_DOUBLETAP;
338 features->y_phy = 334 features->y_phy =
339 get_unaligned_le16(&report[i + 3]); 335 get_unaligned_le16(&report[i + 3]);
340 features->y_max = 336 features->y_max =
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index a22e7789d91b..e18f36232682 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -1317,7 +1317,7 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
1317 break; 1317 break;
1318 1318
1319 case TABLETPC2FG: 1319 case TABLETPC2FG:
1320 if (features->device_type == BTN_TOOL_DOUBLETAP) { 1320 if (features->device_type == BTN_TOOL_FINGER) {
1321 1321
1322 input_mt_init_slots(input_dev, 2); 1322 input_mt_init_slots(input_dev, 2);
1323 input_set_abs_params(input_dev, ABS_MT_TOOL_TYPE, 1323 input_set_abs_params(input_dev, ABS_MT_TOOL_TYPE,
@@ -1366,7 +1366,7 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
1366 1366
1367 __set_bit(INPUT_PROP_POINTER, input_dev->propbit); 1367 __set_bit(INPUT_PROP_POINTER, input_dev->propbit);
1368 1368
1369 if (features->device_type == BTN_TOOL_DOUBLETAP) { 1369 if (features->device_type == BTN_TOOL_FINGER) {
1370 __set_bit(BTN_LEFT, input_dev->keybit); 1370 __set_bit(BTN_LEFT, input_dev->keybit);
1371 __set_bit(BTN_FORWARD, input_dev->keybit); 1371 __set_bit(BTN_FORWARD, input_dev->keybit);
1372 __set_bit(BTN_BACK, input_dev->keybit); 1372 __set_bit(BTN_BACK, input_dev->keybit);