HID: 3m: Correct touchscreen emulation
authorHenrik Rydberg <rydberg@euromail.se>
Tue, 21 Sep 2010 21:22:39 +0000 (23:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Sep 2010 21:22:39 +0000 (23:22 +0200)
commit1d958c83c8d77ad4977ae963017e87cec8cca9b5
tree71ff2c0c756cb973d6d46dd0556138d05b78af4d
parent1f01a1fe167f588c8b6b449fde2f5427ca940423
HID: 3m: Correct touchscreen emulation

The current code sometimes misses to report the last BTN_TOUCH event
when multiple fingers are lifted simultaneously.  With the
introduction of MT slots, the tracking id is available to determine
the oldest active contact. Use this information to simplify and
correct the touchscreen emulation logic.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Acked-by: Stéphane Chatty <chatty@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-3m-pct.c