]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/hid/wacom_wac.c
HID: wacom: make sure touch arbitration is applied consistently
authorPing Cheng <pinglinux@gmail.com>
Wed, 28 Jan 2015 17:42:59 +0000 (09:42 -0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 29 Jan 2015 13:05:04 +0000 (14:05 +0100)
commit9b61aa864ab6c2e12e463559eb83cf83cbd06889
tree1637077aa9338b4ad3962f33bfc3429f21a86e8d
parent33e5df0e0e32027866e9fb00451952998fc957f2
HID: wacom: make sure touch arbitration is applied consistently

stylus_in_proximity is used to make sure no touch event is sent while pen is in
proximity. touch_down is used to make sure a touch up event is sent when pen
comes into proximity while touch is down.

Two touch routines didn't store touch_down. One touch routine forgot to check
stylus_in_proximity before sending touch events. This patch fixes those issues.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c