HID: magicmouse: simplify touch down logic
authorChase Douglas <chase.douglas@ubuntu.com>
Thu, 2 Sep 2010 14:49:52 +0000 (16:49 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 2 Sep 2010 14:49:52 +0000 (16:49 +0200)
commit0228db70ce6afdcd14164ab8d18137fa319c76e8
treed2549ca73b80654979b072af6f8d80474a64b3f8
parent763008c4357b73c8d18396dfd8d79dc58fa3f99d
HID: magicmouse: simplify touch down logic

For the MT protocol, we need to properly keep track of each down touch.
This change simplifies the logic, and should make things easier when
support for the Magic Trackpad is added.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Michael Poole <mdpoole@troilus.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c