diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-07 12:48:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-07 12:48:41 -0400 |
commit | b04c99e3b845892d754ee8052d6324c39c4040de (patch) | |
tree | f2bcedc7977a43b731a0b5cb1030136d40ea2c1e /drivers/hid/hid-wiimote-core.c | |
parent | 44598f98b98e54beca34dc836b38eaea40be1abf (diff) |
Revert "Input: introduce BTN/ABS bits for drums and guitars"
This reverts commits 61e00655e9cb, 73f8645db191 and 8e22ecb603c8:
"Input: introduce BTN/ABS bits for drums and guitars"
"HID: wiimote: add support for Guitar-Hero drums"
"HID: wiimote: add support for Guitar-Hero guitars"
The extra new ABS_xx values resulted in ABS_MAX no longer being a
power-of-two, which broke the comparison logic. It also caused the
ioctl numbers to overflow into the next byte, causing problems for that.
We'll try again for 3.13.
Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hid/hid-wiimote-core.c')
-rw-r--r-- | drivers/hid/hid-wiimote-core.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index bd2bc4a1f378..abb20db2b443 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c | |||
@@ -455,12 +455,6 @@ static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem) | |||
455 | return WIIMOTE_EXT_BALANCE_BOARD; | 455 | return WIIMOTE_EXT_BALANCE_BOARD; |
456 | if (rmem[4] == 0x01 && rmem[5] == 0x20) | 456 | if (rmem[4] == 0x01 && rmem[5] == 0x20) |
457 | return WIIMOTE_EXT_PRO_CONTROLLER; | 457 | return WIIMOTE_EXT_PRO_CONTROLLER; |
458 | if (rmem[0] == 0x01 && rmem[1] == 0x00 && | ||
459 | rmem[4] == 0x01 && rmem[5] == 0x03) | ||
460 | return WIIMOTE_EXT_GUITAR_HERO_DRUMS; | ||
461 | if (rmem[0] == 0x00 && rmem[1] == 0x00 && | ||
462 | rmem[4] == 0x01 && rmem[5] == 0x03) | ||
463 | return WIIMOTE_EXT_GUITAR_HERO_GUITAR; | ||
464 | 458 | ||
465 | return WIIMOTE_EXT_UNKNOWN; | 459 | return WIIMOTE_EXT_UNKNOWN; |
466 | } | 460 | } |
@@ -494,8 +488,6 @@ static bool wiimote_cmd_map_mp(struct wiimote_data *wdata, __u8 exttype) | |||
494 | /* map MP with correct pass-through mode */ | 488 | /* map MP with correct pass-through mode */ |
495 | switch (exttype) { | 489 | switch (exttype) { |
496 | case WIIMOTE_EXT_CLASSIC_CONTROLLER: | 490 | case WIIMOTE_EXT_CLASSIC_CONTROLLER: |
497 | case WIIMOTE_EXT_GUITAR_HERO_DRUMS: | ||
498 | case WIIMOTE_EXT_GUITAR_HERO_GUITAR: | ||
499 | wmem = 0x07; | 491 | wmem = 0x07; |
500 | break; | 492 | break; |
501 | case WIIMOTE_EXT_NUNCHUK: | 493 | case WIIMOTE_EXT_NUNCHUK: |
@@ -1083,8 +1075,6 @@ static const char *wiimote_exttype_names[WIIMOTE_EXT_NUM] = { | |||
1083 | [WIIMOTE_EXT_CLASSIC_CONTROLLER] = "Nintendo Wii Classic Controller", | 1075 | [WIIMOTE_EXT_CLASSIC_CONTROLLER] = "Nintendo Wii Classic Controller", |
1084 | [WIIMOTE_EXT_BALANCE_BOARD] = "Nintendo Wii Balance Board", | 1076 | [WIIMOTE_EXT_BALANCE_BOARD] = "Nintendo Wii Balance Board", |
1085 | [WIIMOTE_EXT_PRO_CONTROLLER] = "Nintendo Wii U Pro Controller", | 1077 | [WIIMOTE_EXT_PRO_CONTROLLER] = "Nintendo Wii U Pro Controller", |
1086 | [WIIMOTE_EXT_GUITAR_HERO_DRUMS] = "Nintendo Wii Guitar Hero Drums", | ||
1087 | [WIIMOTE_EXT_GUITAR_HERO_GUITAR] = "Nintendo Wii Guitar Hero Guitar", | ||
1088 | }; | 1078 | }; |
1089 | 1079 | ||
1090 | /* | 1080 | /* |
@@ -1670,10 +1660,6 @@ static ssize_t wiimote_ext_show(struct device *dev, | |||
1670 | return sprintf(buf, "balanceboard\n"); | 1660 | return sprintf(buf, "balanceboard\n"); |
1671 | case WIIMOTE_EXT_PRO_CONTROLLER: | 1661 | case WIIMOTE_EXT_PRO_CONTROLLER: |
1672 | return sprintf(buf, "procontroller\n"); | 1662 | return sprintf(buf, "procontroller\n"); |
1673 | case WIIMOTE_EXT_GUITAR_HERO_DRUMS: | ||
1674 | return sprintf(buf, "drums\n"); | ||
1675 | case WIIMOTE_EXT_GUITAR_HERO_GUITAR: | ||
1676 | return sprintf(buf, "guitar\n"); | ||
1677 | case WIIMOTE_EXT_UNKNOWN: | 1663 | case WIIMOTE_EXT_UNKNOWN: |
1678 | /* fallthrough */ | 1664 | /* fallthrough */ |
1679 | default: | 1665 | default: |