All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] Input: wacom - Allow any multi-input Intuos device to set prox
@ 2012-09-06 22:53 Jason Gerecke
  2012-09-06 22:53 ` [PATCH 2/5] Input: wacom - handle split-sensor devices with internal hubs Jason Gerecke
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Jason Gerecke @ 2012-09-06 22:53 UTC (permalink / raw)
  To: linux-input, dmitry.torokhov, pinglinux, chris; +Cc: Jason Gerecke

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>
---
 drivers/input/tablet/wacom_wac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 532d067..a8bc6c9 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -326,7 +326,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 */
@@ -414,7 +414,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;
 
 		/*
-- 
1.7.12


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-05 22:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 22:53 [PATCH 1/5] Input: wacom - Allow any multi-input Intuos device to set prox Jason Gerecke
2012-09-06 22:53 ` [PATCH 2/5] Input: wacom - handle split-sensor devices with internal hubs Jason Gerecke
2012-09-06 22:53 ` [PATCH 3/5] Input: wacom - Introduce wacom_fix_phy_from_hid Jason Gerecke
2012-09-06 22:53 ` [PATCH 4/5] Input: wacom - Clean up wacom_query_tablet_data Jason Gerecke
2012-09-06 22:53 ` [PATCH 5/5] Input: wacom - Add touch sensor support for Cintiq 24HD touch Jason Gerecke
2012-09-28 21:18 ` [PATCH 1/5] Input: wacom - Allow any multi-input Intuos device to set prox Ping Cheng
2012-10-01 17:09   ` Jason Gerecke
2012-10-04  7:25     ` Dmitry Torokhov
2012-10-05 22:26       ` Jason Gerecke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.