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)
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>

No differences found