Skip to content

Commit 86c03f4

Browse files
whotdtor
authored andcommitted
Input: wacom_w8001 - use __set_bit for evbits
Signed-off-by: Peter Hutterer <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Reviewed-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent d352c0e commit 86c03f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/input/touchscreen/wacom_w8001.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ static int w8001_setup(struct w8001 *w8001)
393393

394394
msleep(250); /* wait 250ms before querying the device */
395395

396-
dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
396+
__set_bit(EV_KEY, dev->evbit);
397+
__set_bit(EV_ABS, dev->evbit);
397398
strlcat(w8001->name, "Wacom Serial", sizeof(w8001->name));
398399

399400
__set_bit(INPUT_PROP_DIRECT, dev->propbit);

0 commit comments

Comments
 (0)