HID: magicmouse: simplify touch data bit manipulation
authorChase Douglas <chase.douglas@canonical.com>
Wed, 1 Sep 2010 01:56:20 +0000 (21:56 -0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 3 Sep 2010 16:20:23 +0000 (18:20 +0200)
commit6de048bf1dd2ad35fe9b2326bf9d6d23fb2fff7a
tree25234d4e083ecbc1dfc6c00e5398a535d24fa707
parent0773590c89fee9c62eaddc5459e52ba96173f930
HID: magicmouse: simplify touch data bit manipulation

The new format should be easier to read to determine which bits
correspond to which data. It also brings all the manipulation logic to
the top of the function. This makes size and orientation reading more
clear.

Note that the impetus for this change is the forthcoming support for the
Magic Trackpad, which has a different touch data protocol.

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