From: Przemo Firszt Date: Mon, 4 Jan 2010 11:32:00 +0000 (+0100) Subject: HID: fix pad button definition in hid-wacom X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d01799b2f399603ae4cecc06f6ea146c57519cb1;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c index 74754217224..75ea66affb6 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);