diff options
author | Jason Gerecke <killertofu@gmail.com> | 2012-10-03 20:19:50 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-04 02:58:20 -0400 |
commit | 9d336daf3b502f594ce18d26a3a009adb2cf3729 (patch) | |
tree | bd38fc8a0265b7e6462010a9143526040b3be565 /drivers/input | |
parent | 4e90495498cc6f1aa15e7667a695908860938b3e (diff) |
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 <killertofu@gmail.com>
Tested-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/tablet/wacom_wac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index ea4068b4490..b989bbfe0dc 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) | |||
331 | 331 | ||
332 | /* Enter report */ | 332 | /* Enter report */ |
333 | if ((data[1] & 0xfc) == 0xc0) { | 333 | if ((data[1] & 0xfc) == 0xc0) { |
334 | if (features->type >= INTUOS5S && features->type <= INTUOS5L) | 334 | if (features->quirks == WACOM_QUIRK_MULTI_INPUT) |
335 | wacom->shared->stylus_in_proximity = true; | 335 | wacom->shared->stylus_in_proximity = true; |
336 | 336 | ||
337 | /* serial number of the tool */ | 337 | /* serial number of the tool */ |
@@ -419,7 +419,7 @@ static int wacom_intuos_inout(struct wacom_wac *wacom) | |||
419 | 419 | ||
420 | /* Exit report */ | 420 | /* Exit report */ |
421 | if ((data[1] & 0xfe) == 0x80) { | 421 | if ((data[1] & 0xfe) == 0x80) { |
422 | if (features->type >= INTUOS5S && features->type <= INTUOS5L) | 422 | if (features->quirks == WACOM_QUIRK_MULTI_INPUT) |
423 | wacom->shared->stylus_in_proximity = false; | 423 | wacom->shared->stylus_in_proximity = false; |
424 | 424 | ||
425 | /* | 425 | /* |