]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: wiimote: Fix IR data parser
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 8 May 2012 14:52:31 +0000 (16:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:44 +0000 (15:15 +0800)
commit5b3a8e30b04642379e6f5ca87e050497e439ca2f
tree70b8bc87861fafd3cfa2ddd33d29913b2003236b
parentf573daace50066c0bea75acd8c3fdb97ae0fc601
HID: wiimote: Fix IR data parser

commit 74b89e8a3625c17c7452532dfb997ac4f1a38751 upstream.

We incorrectly parse incoming IR data. The extra byte contains the upper
bits and not the lower bits of the x/y coordinates. User-space expects
absolute position data from us so this patch does not break existing
applications. On the contrary, it extends the virtual view and fixes
garbage reports for margin areas of the virtual screen.

Reported-by: Peter Bukovsky <bukovsky.peter@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-wiimote-core.c