Input: wacom_w8001 - use __set_bit for evbits
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 1 Dec 2015 21:31:06 +0000 (13:31 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Dec 2015 23:58:31 +0000 (15:58 -0800)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wacom_w8001.c

index 2792ca397dd085eb1f8d30d0af2a12a233389a41..d194d57c21b63b33ac094540dbc340e61eff1d1d 100644 (file)
@@ -393,7 +393,8 @@ static int w8001_setup(struct w8001 *w8001)
 
        msleep(250);    /* wait 250ms before querying the device */
 
-       dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
+       __set_bit(EV_KEY, dev->evbit);
+       __set_bit(EV_ABS, dev->evbit);
        strlcat(w8001->name, "Wacom Serial", sizeof(w8001->name));
 
        __set_bit(INPUT_PROP_DIRECT, dev->propbit);