]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
HID: wiimote: fix nunchuck button parser
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 18 Feb 2013 00:47:15 +0000 (01:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:40 +0000 (05:38 -0800)
commite3bee3ddd2fe5af43ad52d837351eb1a12bb39dd
tree7f4f827505e017bec4262254c7d74cd8482fe10c
parent2c3c78916a91b01d0571fbc1ae7434ca3c2d2288
HID: wiimote: fix nunchuck button parser

commit 89bdd0c6f38ccf0de43d5a36ede384a730f3394e upstream.

The buttons of the Wii Remote Nunchuck extension are actually active low.
Fix the parser to forward the inverted values. The comment in the function
always said "0 == pressed" but the implementation was wrong from the
beginning.

Reported-by: Victor Quicksilver <victor.quicksilver@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-wiimote-ext.c