summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorPrzemo Firszt <przemo@firszt.eu>2010-01-04 14:32:00 +0300
committerJiri Kosina <jkosina@suse.cz>2010-01-13 14:00:32 +0300
commitd01799b2f399603ae4cecc06f6ea146c57519cb1 (patch)
treef25e47b1e6fd2463fc5286d73c4af0280976e965 /drivers/hid
parent3975bc56305256af7689bcce62284fc62e09fc8f (diff)
downloadlinux-d01799b2f399603ae4cecc06f6ea146c57519cb1.tar.xz
HID: fix pad button definition in hid-wacom
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-wacom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c
index 747542172242..75ea66affb66 100644
--- a/drivers/hid/hid-wacom.c
+++ b/drivers/hid/hid-wacom.c
@@ -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);