HID: magicmouse: Correct parsing of large X and Y motions.
authorMichael Poole <mdpoole@troilus.org>
Mon, 5 Jul 2010 14:50:09 +0000 (10:50 -0400)
committerJiri Kosina <jkosina@suse.cz>
Sun, 11 Jul 2010 21:06:14 +0000 (23:06 +0200)
commit7d876c05fa6cf82f0274f27276d981ed325697a5
tree3470e4084de463e962ccd2d7b39fb41a850508bb
parente3612e8669b8c15278058f8dd52e3dc6e7d26710
HID: magicmouse: Correct parsing of large X and Y motions.

The X and Y values have two more significant bits in the same byte
that contains click status.  Include these in the reported value.
Thanks to Iain Hibbert of NetBSD for pointing this out.

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