HID: wacom: generic: Wacom mouse is only provided for opaque tablets
Subsystems (2)
PATCH 1/1 HID: wacom: generic: Wacom mouse is only provided for opaque tablets
So, don't add mouse and lens cursor tools.
Signed-off-by Ping Cheng <[email protected]>
--- drivers/hid/wacom_wac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/hid/wacom_wac.c +4 -2
@@ -1952,8 +1952,10 @@ static void wacom_wac_pen_usage_mapping(struct hid_device *hdev,input_set_capability (input,EV_KEY ,BTN_TOOL_BRUSH );input_set_capability (input,EV_KEY ,BTN_TOOL_PENCIL );input_set_capability (input,EV_KEY ,BTN_TOOL_AIRBRUSH ); -input_set_capability (input,EV_KEY ,BTN_TOOL_MOUSE ); -input_set_capability (input,EV_KEY ,BTN_TOOL_LENS ); +if (!(features->device_type &WACOM_DEVICETYPE_DIRECT )) { +input_set_capability (input,EV_KEY ,BTN_TOOL_MOUSE ); +input_set_capability (input,EV_KEY ,BTN_TOOL_LENS ); + }break ;case WACOM_HID_WD_FINGERWHEEL :wacom_map_usage (input, usage, field,EV_ABS ,ABS_WHEEL ,0 );
Signature · 1 line
2.7.4
Quoted 4 lines · Ping Cheng
So, don't add mouse and lens cursor tools.
Signed-off-by Ping Cheng <[email protected]>---
Looks good to me!
Reviewed-by Jason Gerecke <[email protected]>
Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one /
(That is to say, eight) to the two, /
But you can’t take seven from three, /
So you look at the sixty-fours....
Quoted 23 lines
drivers/hid/wacom_wac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/hid/wacom_wac.c +4
-3@@ -1952,8 +1952,10 @@ static void wacom_wac_pen_usage_mapping(struct hid_device *hdev,input_set_capability (input,EV_KEY ,BTN_TOOL_BRUSH );input_set_capability (input,EV_KEY ,BTN_TOOL_PENCIL );input_set_capability (input,EV_KEY ,BTN_TOOL_AIRBRUSH ); -input_set_capability (input,EV_KEY ,BTN_TOOL_MOUSE ); -input_set_capability (input,EV_KEY ,BTN_TOOL_LENS ); +if (!(features->device_type &WACOM_DEVICETYPE_DIRECT )) { +input_set_capability (input,EV_KEY ,BTN_TOOL_MOUSE ); +input_set_capability (input,EV_KEY ,BTN_TOOL_LENS ); + }break ;case WACOM_HID_WD_FINGERWHEEL :wacom_map_usage (input, usage, field,EV_ABS ,ABS_WHEEL ,0 ); --2.7.4
Jiri Kosina
maintainerQuoted 3 lines · Ping Cheng
So, don't add mouse and lens cursor tools.
Signed-off-by Ping Cheng <[email protected]>
Could you please make the changelog more specific? It's not clear from it what kind of bug this is exactly fixing, and what are the user-visible effects of it (namely in relation to it's applicability to 4.11/stable/etc).
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs