Input: wacom - fix 3rd-gen Bamboo MT when 4+ fingers are in use
authorJason Gerecke <killertofu@gmail.com>
Tue, 6 Mar 2012 18:19:19 +0000 (10:19 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 7 Mar 2012 08:45:26 +0000 (00:45 -0800)
The message count field uses three bits of storage, not two.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Acked-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/wacom_wac.c

index 88672ec296c116e10d7340c7f07397e10e09afe1..cd3ed29e0801347f20fb9b5da9e2fbbddfbd14b5 100644 (file)
@@ -926,7 +926,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)