From: Jason Gerecke Date: Mon, 24 Sep 2012 16:21:31 +0000 (-0700) Subject: Input: wacom - mark Intuos5 pad as in-prox when touching buttons X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e056ef4ddeb6129f6bb170f2c26b8f370bbcda7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: wacom - mark Intuos5 pad as in-prox when touching buttons If the ExpressKeys on the Intuos5 are touched, they currently result an out-of-prox packet being sent even if the pad is already out of prox. This can cause some confusion in the X driver. To restore the expected semantics, we make being touched a sufficient condition to signal proximity. https://bugs.freedesktop.org/show_bug.cgi?id=54250 Reported-by: Timo Aaltonen Signed-off-by: Jason Gerecke Reviewed-by: Chris Bagwell Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 532d067a9e07..93171098abbd 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -606,7 +606,7 @@ static int wacom_intuos_irq(struct wacom_wac *wacom) input_report_abs(input, ABS_WHEEL, 0); } - if (data[2] | (data[3] & 0x01) | data[4]) { + if (data[2] | (data[3] & 0x01) | data[4] | data[5]) { input_report_key(input, wacom->tool[1], 1); input_report_abs(input, ABS_MISC, PAD_DEVICE_ID); } else {