HID: wiimote: fix nunchuck button parser
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 18 Feb 2013 00:47:15 +0000 (01:47 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Feb 2013 09:41:52 +0000 (10:41 +0100)
commit89bdd0c6f38ccf0de43d5a36ede384a730f3394e
tree09957ec9b910aecbfb0796b8bea2e3858d2991ea
parent30b6b7d8d340f41d11eb75e5238d33dbc438fde4
HID: wiimote: fix nunchuck button parser

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.

Cc: stable@vger.kernel.org
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>
drivers/hid/hid-wiimote-ext.c