HID: wiimote: Fix IR data parser
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 8 May 2012 14:52:31 +0000 (16:52 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 9 May 2012 09:40:51 +0000 (11:40 +0200)
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.

Cc: stable@kernel.org
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>

No differences found