aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-wiimote-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-wiimote-core.c')
-rw-r--r--drivers/hid/hid-wiimote-core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 946cdeff4798..d3055d1dbc06 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -459,6 +459,9 @@ static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem)
459 if (rmem[0] == 0x01 && rmem[1] == 0x00 && 459 if (rmem[0] == 0x01 && rmem[1] == 0x00 &&
460 rmem[4] == 0x01 && rmem[5] == 0x03) 460 rmem[4] == 0x01 && rmem[5] == 0x03)
461 return WIIMOTE_EXT_GUITAR_HERO_DRUMS; 461 return WIIMOTE_EXT_GUITAR_HERO_DRUMS;
462 if (rmem[0] == 0x00 && rmem[1] == 0x00 &&
463 rmem[4] == 0x01 && rmem[5] == 0x03)
464 return WIIMOTE_EXT_GUITAR_HERO_GUITAR;
462 465
463 return WIIMOTE_EXT_UNKNOWN; 466 return WIIMOTE_EXT_UNKNOWN;
464} 467}
@@ -493,6 +496,7 @@ static bool wiimote_cmd_map_mp(struct wiimote_data *wdata, __u8 exttype)
493 switch (exttype) { 496 switch (exttype) {
494 case WIIMOTE_EXT_CLASSIC_CONTROLLER: 497 case WIIMOTE_EXT_CLASSIC_CONTROLLER:
495 case WIIMOTE_EXT_GUITAR_HERO_DRUMS: 498 case WIIMOTE_EXT_GUITAR_HERO_DRUMS:
499 case WIIMOTE_EXT_GUITAR_HERO_GUITAR:
496 wmem = 0x07; 500 wmem = 0x07;
497 break; 501 break;
498 case WIIMOTE_EXT_NUNCHUK: 502 case WIIMOTE_EXT_NUNCHUK:
@@ -1084,6 +1088,7 @@ static const char *wiimote_exttype_names[WIIMOTE_EXT_NUM] = {
1084 [WIIMOTE_EXT_BALANCE_BOARD] = "Nintendo Wii Balance Board", 1088 [WIIMOTE_EXT_BALANCE_BOARD] = "Nintendo Wii Balance Board",
1085 [WIIMOTE_EXT_PRO_CONTROLLER] = "Nintendo Wii U Pro Controller", 1089 [WIIMOTE_EXT_PRO_CONTROLLER] = "Nintendo Wii U Pro Controller",
1086 [WIIMOTE_EXT_GUITAR_HERO_DRUMS] = "Nintendo Wii Guitar Hero Drums", 1090 [WIIMOTE_EXT_GUITAR_HERO_DRUMS] = "Nintendo Wii Guitar Hero Drums",
1091 [WIIMOTE_EXT_GUITAR_HERO_GUITAR] = "Nintendo Wii Guitar Hero Guitar",
1087}; 1092};
1088 1093
1089/* 1094/*
@@ -1672,6 +1677,8 @@ static ssize_t wiimote_ext_show(struct device *dev,
1672 return sprintf(buf, "procontroller\n"); 1677 return sprintf(buf, "procontroller\n");
1673 case WIIMOTE_EXT_GUITAR_HERO_DRUMS: 1678 case WIIMOTE_EXT_GUITAR_HERO_DRUMS:
1674 return sprintf(buf, "drums\n"); 1679 return sprintf(buf, "drums\n");
1680 case WIIMOTE_EXT_GUITAR_HERO_GUITAR:
1681 return sprintf(buf, "guitar\n");
1675 case WIIMOTE_EXT_UNKNOWN: 1682 case WIIMOTE_EXT_UNKNOWN:
1676 /* fallthrough */ 1683 /* fallthrough */
1677 default: 1684 default: