aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrzemo Firszt <przemo@firszt.eu>2010-01-04 06:32:00 -0500
committerJiri Kosina <jkosina@suse.cz>2010-01-13 06:00:32 -0500
commitd01799b2f399603ae4cecc06f6ea146c57519cb1 (patch)
treef25e47b1e6fd2463fc5286d73c4af0280976e965
parent3975bc56305256af7689bcce62284fc62e09fc8f (diff)
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>
-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,
196 /* Pad */ 196 /* Pad */
197 input->evbit[0] |= BIT(EV_MSC); 197 input->evbit[0] |= BIT(EV_MSC);
198 input->mscbit[0] |= BIT(MSC_SERIAL); 198 input->mscbit[0] |= BIT(MSC_SERIAL);
199 set_bit(BTN_0, input->keybit);
200 set_bit(BTN_1, input->keybit);
201 set_bit(BTN_TOOL_FINGER, input->keybit);
199 202
200 /* Distance, rubber and mouse */ 203 /* Distance, rubber and mouse */
201 input->absbit[0] |= BIT(ABS_DISTANCE); 204 input->absbit[0] |= BIT(ABS_DISTANCE);