diff options
author | Cyan Ogilvie <cyan.ogilvie@gmail.com> | 2016-03-16 17:59:41 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-03-18 17:31:38 +0100 |
commit | d30596737e8e7b2f1235d7ba20592b8309e3af04 (patch) | |
tree | 4074e2ad70bff2b085a6e7025e8f202b16c33aeb /drivers/hid/usbhid | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff) | |
download | linux-d30596737e8e7b2f1235d7ba20592b8309e3af04.tar.xz linux-d30596737e8e7b2f1235d7ba20592b8309e3af04.zip |
HID: wiimote: Fix wiimote mp scale linearization
The wiimote motion plus gyros use two scales to report fast and slow
rotation - below 440 deg/s uses 8192/440 units / deg/s, and above uses
8192/2000 units / deg/s.
Previously this driver attempted to linearize the two by scaling the fast
rate by 18 and the slow by 9, but this results in a scale of
8192*9/440 = ~167.564 for slow and 8192*18/2000 = 73.728 for fast.
Correct the fast motion scale factor so that both report ~167.564
units / deg/s
Signed-off-by: Cyan Ogilvie <cyan.ogilvie@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
0 files changed, 0 insertions, 0 deletions