]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Input: MT - Handle frame synchronization in core
authorHenrik Rydberg <rydberg@euromail.se>
Wed, 22 Aug 2012 18:43:22 +0000 (20:43 +0200)
committerHenrik Rydberg <rydberg@euromail.se>
Mon, 10 Sep 2012 17:59:59 +0000 (19:59 +0200)
commit093f45884fff3828023e60139183e39610eebe6a
tree7992334304e651459705a0abdce8f27239c4e6b8
parent898918e6d2e0ada8e04d61a2e9a9156aae0fa114
Input: MT - Handle frame synchronization in core

Most MT drivers perform the same actions on frame synchronization.
Some actions, like dropping unseen contacts, are also unnecessarily
complex. Collect common frame synchronization tasks in a new function,
input_mt_sync_frame(). Depending on the flags set, it drops unseen
contacts and performs pointer emulation.

With init flags and frame synchronization in place, most MT drivers
can be simplified. First out are the bcm5974 and hid-multitouch
drivers, following this patch.

Reviewed-and-tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Tested-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/input-mt.c
include/linux/input/mt.h