HID: magicmouse: Correct report range of major / minor axes
authorYufeng Shen <miletus@chromium.org>
Fri, 22 Jun 2012 16:31:53 +0000 (12:31 -0400)
committerJiri Kosina <jkosina@suse.cz>
Mon, 25 Jun 2012 13:30:15 +0000 (15:30 +0200)
commite75561b3d2a4eb15080ed73f59f7dc2965c01423
tree01507c7e31e8874a25fbe37283f27b0fb792db35
parentd8dc3494f77a5cc3b274bae36f7e74e85cf8a407
HID: magicmouse: Correct report range of major / minor axes

In patch "HID: magicmouse: Adjust major / minor axes to scale",
touch_major and touch_minor axes are scaled by a factor of
four when reported but the max touch_major/minor is not scaled
accordingly. This patch scales the max touch_major/minor to
be consistent with the reported value.

Signed-off-by: Yufeng Shen <miletus@chromium.org>
Acked-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c