diff options
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-wiimote-ext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hid/hid-wiimote-ext.c b/drivers/hid/hid-wiimote-ext.c index 38ae87772e96..0472191d4a72 100644 --- a/drivers/hid/hid-wiimote-ext.c +++ b/drivers/hid/hid-wiimote-ext.c | |||
@@ -403,14 +403,14 @@ static void handler_nunchuck(struct wiimote_ext *ext, const __u8 *payload) | |||
403 | 403 | ||
404 | if (ext->motionp) { | 404 | if (ext->motionp) { |
405 | input_report_key(ext->input, | 405 | input_report_key(ext->input, |
406 | wiiext_keymap[WIIEXT_KEY_Z], !!(payload[5] & 0x04)); | 406 | wiiext_keymap[WIIEXT_KEY_Z], !(payload[5] & 0x04)); |
407 | input_report_key(ext->input, | 407 | input_report_key(ext->input, |
408 | wiiext_keymap[WIIEXT_KEY_C], !!(payload[5] & 0x08)); | 408 | wiiext_keymap[WIIEXT_KEY_C], !(payload[5] & 0x08)); |
409 | } else { | 409 | } else { |
410 | input_report_key(ext->input, | 410 | input_report_key(ext->input, |
411 | wiiext_keymap[WIIEXT_KEY_Z], !!(payload[5] & 0x01)); | 411 | wiiext_keymap[WIIEXT_KEY_Z], !(payload[5] & 0x01)); |
412 | input_report_key(ext->input, | 412 | input_report_key(ext->input, |
413 | wiiext_keymap[WIIEXT_KEY_C], !!(payload[5] & 0x02)); | 413 | wiiext_keymap[WIIEXT_KEY_C], !(payload[5] & 0x02)); |
414 | } | 414 | } |
415 | 415 | ||
416 | input_sync(ext->input); | 416 | input_sync(ext->input); |