]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/wacom_wac.c
HID: wacom - Cleanup touch arbitration logic
authorPing Cheng <pinglinux@gmail.com>
Sat, 9 Jan 2016 01:16:06 +0000 (17:16 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Jan 2016 22:02:56 +0000 (23:02 +0100)
commitc1b03f5511d6aeab3c141c133b492ea492207e64
treec9ae729be516edad5853ae2d9afb49978eafc13b
parent4750f5fe293ae34d334189a77da844f8754862ef
HID: wacom - Cleanup touch arbitration logic

stylus_in_proximity was introduced to support touch arbitration
before in range was supported. With in range event, the logic
changed. stylus_in_proximity should be set for both in prox and
in range events.

To finish a clean touch arbitration logic, we should send touch
up (if it was down) before posting any general pen events.

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