]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
HID: fix pad button definition in hid-wacom
authorPrzemo Firszt <przemo@firszt.eu>
Mon, 4 Jan 2010 11:32:00 +0000 (12:32 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 13 Jan 2010 11:00:32 +0000 (12:00 +0100)
This fix is required for xorg driver to recognise 2 pad buttons

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wacom.c

index 7475421722428bac0015bc3335190fbbf931abde..75ea66affb667f4bbb148fc352647d5e3b840ace 100644 (file)
@@ -196,6 +196,9 @@ static int wacom_probe(struct hid_device *hdev,
        /* Pad */
        input->evbit[0] |= BIT(EV_MSC);
        input->mscbit[0] |= BIT(MSC_SERIAL);
+       set_bit(BTN_0, input->keybit);
+       set_bit(BTN_1, input->keybit);
+       set_bit(BTN_TOOL_FINGER, input->keybit);
 
        /* Distance, rubber and mouse */
        input->absbit[0] |= BIT(ABS_DISTANCE);