]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: rely on actual touch down count to decide touch_down
authorPing Cheng <pinglinux@gmail.com>
Fri, 20 Feb 2015 22:27:30 +0000 (14:27 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 2 Mar 2015 23:27:10 +0000 (00:27 +0100)
commit1abe81430e1061d2b09fb41cf8aa5b1e2ef5c6d4
tree9a488d9eaa758469a13c5c712884204e71bfb2b7
parentd0694a67206058bea3b2b5c1031970424a01641f
HID: wacom: rely on actual touch down count to decide touch_down

touch_down is a flag to indicate if there are touches on tablet
or not. Since one set of touch events may be posted over more
than one data packet/touch frame, and pen may come in proximity
while touch events are partially sent, counting all touch events
for the set reflects the actual status of touch_down.

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