From: Jason Gerecke Date: Sat, 27 Aug 2011 06:18:22 +0000 (-0700) Subject: Input: wacom - advertise BTN_TOOL_PEN and BTN_STYLUS for PenPartner X-Git-Tag: MMI-PSA29.97-13-9~8540^2~398 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1fab84aa635572fbd74df8fd4fd25ea0a24c76e5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Input: wacom - advertise BTN_TOOL_PEN and BTN_STYLUS for PenPartner 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 Reviewed-by: Ping Cheng Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 3eccf212d5b2..2d88316d0e54 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -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: