]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2bd2c6a3db0adc3827a7b7f8648e7e4f0861bef
tree01507c7e31e8874a25fbe37283f27b0fb792db35
parent2f4fcba4e52a01859618529b91d0fd8df7c0edcd
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