HID: magicmouse: Implement Multi-touch Protocol B (MT-B)
authorYufeng Shen <miletus@chromium.org>
Wed, 4 Jul 2012 16:15:43 +0000 (12:15 -0400)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Jul 2012 18:58:48 +0000 (20:58 +0200)
commita6d1bc1d5fb0f6ce817bef188a3d93255db03992
tree894068d3ebefa415adcd8b30aea9ad38b79129cc
parent6264307ed090cc41a47a1e55be713d75e81f1b27
HID: magicmouse: Implement Multi-touch Protocol B (MT-B)

The driver for Apple Magic Trackpad/Mouse currently uses
Multi-touch Protocol A (MT-A) to report touch events and uses
ABS_MT_TRACKING_ID to do finger tracking. The fact of the device
being able to track individual finger makes it possible to
report touch events using MT-B. This patch converts the driver
to use MT-B as it is preferred to MT-A.

V4: Removed BTN_TOUCH evnet.
V3: Removed the single touch related logic.
V2: Converting entirely to MT-B as Henrik Rydberg suggested.

Signed-off-by: Yufeng Shen <miletus@chromium.org>
Reviewed-and-tested-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c