From: Jason Gerecke Date: Thu, 4 Oct 2012 00:19:50 +0000 (-0700) Subject: Input: wacom - allow any multi-input Intuos device to set prox X-Git-Tag: v3.7-rc4~7^2~7^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d336daf3b502f594ce18d26a3a009adb2cf3729;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Input: wacom - allow any multi-input Intuos device to set prox The ability to set the proximity flag should apply to any device that has both pen and touch input. Rather than listing classes of devices known to meet this criteria, simply filter on the quirk defining all such devices. Signed-off-by: Jason Gerecke Tested-by: Ping Cheng Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index ea4068b..b989bbf 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -331,7 +331,7 @@ static int wacom_intuos_inout(struct wacom_wac *wacom) /* Enter report */ if ((data[1] & 0xfc) == 0xc0) { - if (features->type >= INTUOS5S && features->type <= INTUOS5L) + if (features->quirks == WACOM_QUIRK_MULTI_INPUT) wacom->shared->stylus_in_proximity = true; /* serial number of the tool */ @@ -419,7 +419,7 @@ static int wacom_intuos_inout(struct wacom_wac *wacom) /* Exit report */ if ((data[1] & 0xfe) == 0x80) { - if (features->type >= INTUOS5S && features->type <= INTUOS5L) + if (features->quirks == WACOM_QUIRK_MULTI_INPUT) wacom->shared->stylus_in_proximity = false; /*