]> git.baikalelectronics.ru Git - kernel.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>
Wed, 19 Sep 2012 17:50:19 +0000 (19:50 +0200)
commit3e8db35c3ca92fa02c97659b691c9dfcaa044d50
treeea080c5831e489465378a37480d87c1125143b8c
parent2eb36257ec0daa63c615be35bae9df1d9b6a0fa0
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>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/input-mt.c
include/linux/input/mt.h