aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/tablet/wacom_sys.c10
-rw-r--r--drivers/input/tablet/wacom_wac.c6
-rw-r--r--drivers/input/tablet/wacom_wac.h6
3 files changed, 8 insertions, 14 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index b3a8bd3514b2..79b5cfbc1bc4 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -440,8 +440,7 @@ static int wacom_query_tablet_data(struct usb_interface *intf, struct wacom_feat
440 /* ask to report Wacom data */ 440 /* ask to report Wacom data */
441 if (features->device_type == BTN_TOOL_FINGER) { 441 if (features->device_type == BTN_TOOL_FINGER) {
442 /* if it is an MT Tablet PC touch */ 442 /* if it is an MT Tablet PC touch */
443 if (features->type == TABLETPC2FG || 443 if (features->type > TABLETPC) {
444 features->type == MTSCREEN) {
445 do { 444 do {
446 rep_data[0] = 3; 445 rep_data[0] = 3;
447 rep_data[1] = 4; 446 rep_data[1] = 4;
@@ -460,7 +459,7 @@ static int wacom_query_tablet_data(struct usb_interface *intf, struct wacom_feat
460 } while ((error < 0 || rep_data[1] != 4) && 459 } while ((error < 0 || rep_data[1] != 4) &&
461 limit++ < WAC_MSG_RETRIES); 460 limit++ < WAC_MSG_RETRIES);
462 } 461 }
463 } else if (features->type != TABLETPC && 462 } else if (features->type <= BAMBOO_PT &&
464 features->type != WIRELESS && 463 features->type != WIRELESS &&
465 features->device_type == BTN_TOOL_PEN) { 464 features->device_type == BTN_TOOL_PEN) {
466 do { 465 do {
@@ -510,10 +509,7 @@ static int wacom_retrieve_hid_descriptor(struct usb_interface *intf,
510 } 509 }
511 510
512 /* only devices that support touch need to retrieve the info */ 511 /* only devices that support touch need to retrieve the info */
513 if (features->type != TABLETPC && 512 if (features->type < BAMBOO_PT) {
514 features->type != TABLETPC2FG &&
515 features->type != BAMBOO_PT &&
516 features->type != MTSCREEN) {
517 goto out; 513 goto out;
518 } 514 }
519 515
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 004bc1bb1544..c40dcb7036b3 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -1317,10 +1317,8 @@ void wacom_setup_device_quirks(struct wacom_features *features)
1317 } 1317 }
1318 1318
1319 /* these device have multiple inputs */ 1319 /* these device have multiple inputs */
1320 if (features->type == TABLETPC || features->type == TABLETPC2FG || 1320 if (features->type >= WIRELESS ||
1321 features->type == BAMBOO_PT || features->type == WIRELESS || 1321 (features->type >= INTUOS5S && features->type <= INTUOS5L))
1322 (features->type >= INTUOS5S && features->type <= INTUOS5L) ||
1323 features->type == MTSCREEN)
1324 features->quirks |= WACOM_QUIRK_MULTI_INPUT; 1322 features->quirks |= WACOM_QUIRK_MULTI_INPUT;
1325 1323
1326 /* quirk for bamboo touch with 2 low res touches */ 1324 /* quirk for bamboo touch with 2 low res touches */
diff --git a/drivers/input/tablet/wacom_wac.h b/drivers/input/tablet/wacom_wac.h
index 78fbd3f42009..87080435116c 100644
--- a/drivers/input/tablet/wacom_wac.h
+++ b/drivers/input/tablet/wacom_wac.h
@@ -62,8 +62,6 @@ enum {
62 PTU, 62 PTU,
63 PL, 63 PL,
64 DTU, 64 DTU,
65 BAMBOO_PT,
66 WIRELESS,
67 INTUOS, 65 INTUOS,
68 INTUOS3S, 66 INTUOS3S,
69 INTUOS3, 67 INTUOS3,
@@ -79,7 +77,9 @@ enum {
79 CINTIQ, 77 CINTIQ,
80 WACOM_BEE, 78 WACOM_BEE,
81 WACOM_MO, 79 WACOM_MO,
82 TABLETPC, 80 WIRELESS,
81 BAMBOO_PT,
82 TABLETPC, /* add new TPC below */
83 TABLETPC2FG, 83 TABLETPC2FG,
84 MTSCREEN, 84 MTSCREEN,
85 MAX_TYPE 85 MAX_TYPE