Skip to contentSkip to conversation

input: wacom: Fix 3rd-gen Bamboo MT when 4+ fingers are in use

PATCH In review Jason Gerecke 2 participants 2 messages Mar 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: wacom: Fix 3rd-gen Bamboo MT when 4+ fingers are in use

The message count field uses three bits of storage, not two.

---
 drivers/input/tablet/wacom_wac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/tablet/wacom_wac.c +1 -1
index 9283507..d0b0fc4 100644
@@ -938,7 +938,7 @@ static int wacom_bpt3_touch(struct wacom_wac *wacom)
 {
 	struct input_dev *input = wacom->input;
 	unsigned char *data = wacom->data;
-	int count = data[1] & 0x03;
+	int count = data[1] & 0x07;
 	int i;
 
 	if (data[0] != 0x02)
Signature · 1 line
1.7.9.1
Acked-by on v1 1/1
#1 lore raw

Opps. The comment two lines below patch even says max count is 7.

Chris

Quoted 21 lines · Jason Gerecke

The message count field uses three bits of storage, not two.

---
 drivers/input/tablet/wacom_wac.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/tablet/wacom_wac.c +1 -2
index 9283507..d0b0fc4 100644
@@ -938,7 +938,7 @@ static int wacom_bpt3_touch(struct wacom_wac *wacom)
  {
        struct input_dev *input = wacom->input;
        unsigned char *data = wacom->data;
-       int count = data[1] & 0x03;
+       int count = data[1] & 0x07;
        int i;
 
        if (data[0] != 0x02)
--
Quoted 2 lines

1.7.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html