HID: wacom: Replace __set_bit with input_set_capability
authorPrzemo Firszt <przemo@firszt.eu>
Wed, 14 Mar 2012 19:55:03 +0000 (19:55 +0000)
committerJiri Kosina <jkosina@suse.cz>
Fri, 16 Mar 2012 11:14:54 +0000 (12:14 +0100)
It's a trivial patch. It's doesn't change the functionality as the helper
input_set_capability does the same thing.

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

index f9af474275dbbd09c247d8716d1676dedc3866da..3fc93869024eb8f811bf8717d2f608b4a5dc9a83 100644 (file)
@@ -492,9 +492,7 @@ static int wacom_input_mapped(struct hid_device *hdev, struct hid_input *hi,
        __set_bit(BTN_MIDDLE, input->keybit);
 
        /* Pad */
-       input->evbit[0] |= BIT(EV_MSC);
-
-       __set_bit(MSC_SERIAL, input->mscbit);
+       input_set_capability(input, EV_MSC, MSC_SERIAL);
 
        __set_bit(BTN_0, input->keybit);
        __set_bit(BTN_1, input->keybit);
This page took 0.024353 seconds and 5 git commands to generate.