Input: wacom - advertise BTN_TOOL_PEN and BTN_STYLUS for PenPartner
authorJason Gerecke <killertofu@gmail.com>
Sat, 27 Aug 2011 06:18:22 +0000 (23:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 27 Aug 2011 06:20:21 +0000 (23:20 -0700)
The Wacom PenPartner should advertise its stylus tip and button
in addition to the eraser tool. These are both physically
present on the hardware, and emitted from 'wacom_penpartner_irq'.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/wacom_wac.c

index 3eccf212d5b2258998ab37650a0eb8e4c83fe398..2d88316d0e54e34940edcc7266ac1efc77742532 100644 (file)
@@ -1191,13 +1191,13 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
        case PL:
        case PTU:
        case DTU:
-               __set_bit(BTN_TOOL_PEN, input_dev->keybit);
-               __set_bit(BTN_STYLUS, input_dev->keybit);
                __set_bit(BTN_STYLUS2, input_dev->keybit);
                /* fall through */
 
        case PENPARTNER:
+               __set_bit(BTN_TOOL_PEN, input_dev->keybit);
                __set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
+               __set_bit(BTN_STYLUS, input_dev->keybit);
                break;
 
        case BAMBOO_PT: