HID: hid-multitouch: Fix contact count on 3M panels
authorHenrik Rydberg <rydberg@euromail.se>
Wed, 5 Sep 2012 14:58:12 +0000 (16:58 +0200)
committerHenrik Rydberg <rydberg@euromail.se>
Wed, 19 Sep 2012 17:50:21 +0000 (19:50 +0200)
Some devices report the number of contacts via the unreliable
CONTACTCOUNT usage, rather than using the CONTACTMAX feature.
Without this patch, the 3M devices are constrained to the default
maximum of ten fingers.

Cc: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/hid/hid-multitouch.c

index eee19c9f7b369e8aef073d1010e4ce26ebe0b19b..63f120b7877a1d196b9cbfcac722b80e4e3efc21 100644 (file)
@@ -171,7 +171,9 @@ static struct mt_class mt_classes[] = {
                        MT_QUIRK_SLOT_IS_CONTACTID,
                .sn_move = 2048,
                .sn_width = 128,
-               .sn_height = 128 },
+               .sn_height = 128,
+               .maxcontacts = 60,
+       },
        { .name = MT_CLS_CYPRESS,
                .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP |
                        MT_QUIRK_CYPRESS,