diff options
author | Ping Cheng <pinglinux@gmail.com> | 2011-07-06 21:05:41 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-07-07 00:24:06 -0400 |
commit | 358ea22ee3e14894a2598580297767ccc010119b (patch) | |
tree | 11aed3d3f4144fb0f150e0b441d9f0bb12031cf3 /drivers | |
parent | e8e70d83912b40c5c9ea7b85a6110b9925fbed62 (diff) |
Input: wacom - remove BTN_TOOL_FINGER for pad
BTN_TOOL_FINGER was designed to indicate a single finger touch.
Remove the lines that borrowed this type for expresskeys and
tablet buttons.
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/tablet/wacom_wac.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 0c302c925ecf..7ce1294715e2 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c | |||
@@ -278,7 +278,6 @@ static int wacom_graphire_irq(struct wacom_wac *wacom) | |||
278 | input_report_key(input, BTN_4, (data[7] & 0x80)); | 278 | input_report_key(input, BTN_4, (data[7] & 0x80)); |
279 | rw = ((data[7] & 0x18) >> 3) - ((data[7] & 0x20) >> 3); | 279 | rw = ((data[7] & 0x18) >> 3) - ((data[7] & 0x20) >> 3); |
280 | input_report_rel(input, REL_WHEEL, rw); | 280 | input_report_rel(input, REL_WHEEL, rw); |
281 | input_report_key(input, BTN_TOOL_FINGER, 0xf0); | ||
282 | if (!prox) | 281 | if (!prox) |
283 | wacom->id[1] = 0; | 282 | wacom->id[1] = 0; |
284 | input_report_abs(input, ABS_MISC, wacom->id[1]); | 283 | input_report_abs(input, ABS_MISC, wacom->id[1]); |
@@ -296,7 +295,6 @@ static int wacom_graphire_irq(struct wacom_wac *wacom) | |||
296 | input_report_key(input, BTN_4, (data[7] & 0x10)); | 295 | input_report_key(input, BTN_4, (data[7] & 0x10)); |
297 | input_report_key(input, BTN_5, (data[7] & 0x40)); | 296 | input_report_key(input, BTN_5, (data[7] & 0x40)); |
298 | input_report_abs(input, ABS_WHEEL, (data[8] & 0x7f)); | 297 | input_report_abs(input, ABS_WHEEL, (data[8] & 0x7f)); |
299 | input_report_key(input, BTN_TOOL_FINGER, 0xf0); | ||
300 | if (!prox) | 298 | if (!prox) |
301 | wacom->id[1] = 0; | 299 | wacom->id[1] = 0; |
302 | input_report_abs(input, ABS_MISC, wacom->id[1]); | 300 | input_report_abs(input, ABS_MISC, wacom->id[1]); |
@@ -495,10 +493,6 @@ static int wacom_intuos_irq(struct wacom_wac *wacom) | |||
495 | 493 | ||
496 | /* pad packets. Works as a second tool and is always in prox */ | 494 | /* pad packets. Works as a second tool and is always in prox */ |
497 | if (data[0] == WACOM_REPORT_INTUOSPAD) { | 495 | if (data[0] == WACOM_REPORT_INTUOSPAD) { |
498 | /* initiate the pad as a device */ | ||
499 | if (wacom->tool[1] != BTN_TOOL_FINGER) | ||
500 | wacom->tool[1] = BTN_TOOL_FINGER; | ||
501 | |||
502 | if (features->type >= INTUOS4S && features->type <= INTUOS4L) { | 496 | if (features->type >= INTUOS4S && features->type <= INTUOS4L) { |
503 | input_report_key(input, BTN_0, (data[2] & 0x01)); | 497 | input_report_key(input, BTN_0, (data[2] & 0x01)); |
504 | input_report_key(input, BTN_1, (data[3] & 0x01)); | 498 | input_report_key(input, BTN_1, (data[3] & 0x01)); |
@@ -1090,7 +1084,6 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev, | |||
1090 | case WACOM_G4: | 1084 | case WACOM_G4: |
1091 | input_set_capability(input_dev, EV_MSC, MSC_SERIAL); | 1085 | input_set_capability(input_dev, EV_MSC, MSC_SERIAL); |
1092 | 1086 | ||
1093 | __set_bit(BTN_TOOL_FINGER, input_dev->keybit); | ||
1094 | __set_bit(BTN_0, input_dev->keybit); | 1087 | __set_bit(BTN_0, input_dev->keybit); |
1095 | __set_bit(BTN_4, input_dev->keybit); | 1088 | __set_bit(BTN_4, input_dev->keybit); |
1096 | /* fall through */ | 1089 | /* fall through */ |
@@ -1128,7 +1121,6 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev, | |||
1128 | case CINTIQ: | 1121 | case CINTIQ: |
1129 | for (i = 0; i < 8; i++) | 1122 | for (i = 0; i < 8; i++) |
1130 | __set_bit(BTN_0 + i, input_dev->keybit); | 1123 | __set_bit(BTN_0 + i, input_dev->keybit); |
1131 | __set_bit(BTN_TOOL_FINGER, input_dev->keybit); | ||
1132 | 1124 | ||
1133 | if (wacom_wac->features.type != WACOM_21UX2) { | 1125 | if (wacom_wac->features.type != WACOM_21UX2) { |
1134 | input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0); | 1126 | input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0); |
@@ -1155,8 +1147,6 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev, | |||
1155 | __set_bit(BTN_2, input_dev->keybit); | 1147 | __set_bit(BTN_2, input_dev->keybit); |
1156 | __set_bit(BTN_3, input_dev->keybit); | 1148 | __set_bit(BTN_3, input_dev->keybit); |
1157 | 1149 | ||
1158 | __set_bit(BTN_TOOL_FINGER, input_dev->keybit); | ||
1159 | |||
1160 | input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0); | 1150 | input_set_abs_params(input_dev, ABS_RX, 0, 4096, 0, 0); |
1161 | input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0); | 1151 | input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0); |
1162 | /* fall through */ | 1152 | /* fall through */ |
@@ -1174,7 +1164,6 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev, | |||
1174 | case INTUOS4S: | 1164 | case INTUOS4S: |
1175 | for (i = 0; i < 7; i++) | 1165 | for (i = 0; i < 7; i++) |
1176 | __set_bit(BTN_0 + i, input_dev->keybit); | 1166 | __set_bit(BTN_0 + i, input_dev->keybit); |
1177 | __set_bit(BTN_TOOL_FINGER, input_dev->keybit); | ||
1178 | 1167 | ||
1179 | input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0); | 1168 | input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0); |
1180 | wacom_setup_intuos(wacom_wac); | 1169 | wacom_setup_intuos(wacom_wac); |