diff options
author | Ping Cheng <pinglinux@gmail.com> | 2022-05-13 14:51:56 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-05-27 09:05:31 +0200 |
commit | 7ccced33a0ba39b0103ae1dfbf7f1dffdc0a1bc2 (patch) | |
tree | ab17a5773428e83e725114a528dde97a447854a4 /drivers/platform/surface/aggregator/controller.c | |
parent | aa051d36ce4ae23b488489f6b15abad68b59ca23 (diff) |
HID: wacom: Only report rotation for art pen
The generic routine, wacom_wac_pen_event, turns rotation value 90
degree anti-clockwise before posting the events. This non-zero
event trggers a non-zero ABS_Z event for non art pen tools. However,
HID_DG_TWIST is only supported by art pen.
[jkosina@suse.cz: fix build: add missing brace]
Cc: stable@vger.kernel.org
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
--
Hi Jiri,
This is kind of a version 2 of the last one I posted two days ago.
I updated the logic so it has less changed lines: 29 vs 158! Hopefully,
the logic is easier to follow now. Please ignore the last one.
Thank you!
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions