Skip to content

Commit

Permalink
HID: wacom: Replace __set_bit with input_set_capability
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Przemo Firszt authored and Jiri Kosina committed Mar 16, 2012
1 parent 693f45b commit 9a911da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hid/hid-wacom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a911da

Please sign in to comment.