aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_wac.c
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2012-11-21 13:12:16 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-21 13:22:06 -0800
commit2ad5169c762e56e4c7a76f517256ce853eb53ad0 (patch)
treeb29f1cc69f2901a78be0dc55517905c6660a1eb0 /drivers/input/tablet/wacom_wac.c
parentOMAP: nokia770: remove custom implementation of ads7846_get_pendown_state (diff)
downloadlinux-dev-2ad5169c762e56e4c7a76f517256ce853eb53ad0.tar.xz
linux-dev-2ad5169c762e56e4c7a76f517256ce853eb53ad0.zip
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>
Diffstat (limited to 'drivers/input/tablet/wacom_wac.c')
-rw-r--r--drivers/input/tablet/wacom_wac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 7554a043ee46..a257212ad640 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -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);