Commit 2ad5169c authored by Ping Cheng's avatar Ping Cheng Committed by Dmitry Torokhov

Input: wacom - simplify type check for newer V5 devices

The updated type enum enables this implementation.
Signed-off-by: default avatarPing Cheng <pingc@wacom.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 506ee557
...@@ -467,9 +467,7 @@ static void wacom_intuos_general(struct wacom_wac *wacom) ...@@ -467,9 +467,7 @@ static void wacom_intuos_general(struct wacom_wac *wacom)
/* general pen packet */ /* general pen packet */
if ((data[1] & 0xb8) == 0xa0) { if ((data[1] & 0xb8) == 0xa0) {
t = (data[6] << 2) | ((data[7] >> 6) & 3); t = (data[6] << 2) | ((data[7] >> 6) & 3);
if ((features->type >= INTUOS4S && features->type <= INTUOS4L) || if (features->type >= INTUOS4S && features->type <= WACOM_24HD) {
(features->type >= INTUOS5S && features->type <= INTUOS5L) ||
(features->type >= WACOM_21UX2 && features->type <= WACOM_24HD)) {
t = (t << 1) | (data[1] & 1); t = (t << 1) | (data[1] & 1);
} }
input_report_abs(input, ABS_PRESSURE, t); input_report_abs(input, ABS_PRESSURE, t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment