dect
/
linux-2.6
Archived
13
0
Fork 0

Input: wacom - simplify type check for newer V5 devices

The updated type enum enables this implementation.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Ping Cheng 2012-11-21 13:12:16 -08:00 committed by Dmitry Torokhov
parent 506ee557b7
commit 2ad5169c76
1 changed files with 1 additions and 3 deletions

View File

@ -467,9 +467,7 @@ static void wacom_intuos_general(struct wacom_wac *wacom)
/* general pen packet */
if ((data[1] & 0xb8) == 0xa0) {
t = (data[6] << 2) | ((data[7] >> 6) & 3);
if ((features->type >= INTUOS4S && features->type <= INTUOS4L) ||
(features->type >= INTUOS5S && features->type <= INTUOS5L) ||
(features->type >= WACOM_21UX2 && features->type <= WACOM_24HD)) {
if (features->type >= INTUOS4S && features->type <= WACOM_24HD) {
t = (t << 1) | (data[1] & 1);
}
input_report_abs(input, ABS_PRESSURE, t);