diff options
author | Przemo Firszt <przemo@firszt.eu> | 2010-01-04 12:32:00 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-01-13 12:00:32 +0100 |
commit | d01799b2f399603ae4cecc06f6ea146c57519cb1 (patch) | |
tree | f25e47b1e6fd2463fc5286d73c4af0280976e965 /drivers/hid | |
parent | 3975bc56305256af7689bcce62284fc62e09fc8f (diff) | |
download | kernel_samsung_tuna-d01799b2f399603ae4cecc06f6ea146c57519cb1.zip kernel_samsung_tuna-d01799b2f399603ae4cecc06f6ea146c57519cb1.tar.gz kernel_samsung_tuna-d01799b2f399603ae4cecc06f6ea146c57519cb1.tar.bz2 |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c index 7475421..75ea66a 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); |