HID: magicmouse: simplify touch data bit manipulation
authorChase Douglas <chase.douglas@canonical.com>
Wed, 1 Sep 2010 01:56:20 +0000 (21:56 -0400)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 3 Jun 2011 19:58:22 +0000 (12:58 -0700)
commit4690bf97bbf86bfdb79298ac927a9077b07d6048
tree2dde8a87015b84675eb2063a46549455abfd15f7
parente3bf882c0608969b439307b9a61be1041ad53def
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.

Change-Id: I1b2915ae28dc08f839d0d69e8a2b76fa92ba1f32
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