diff options
-rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 17f00b8dc5cb..89c4519d48ac 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
@@ -640,7 +640,8 @@ static void ideapad_check_special_buttons(struct ideapad_private *priv) | |||
640 | for (bit = 0; bit < 16; bit++) { | 640 | for (bit = 0; bit < 16; bit++) { |
641 | if (test_bit(bit, &value)) { | 641 | if (test_bit(bit, &value)) { |
642 | switch (bit) { | 642 | switch (bit) { |
643 | case 6: | 643 | case 0: /* Z580 */ |
644 | case 6: /* Z570 */ | ||
644 | /* Thermal Management button */ | 645 | /* Thermal Management button */ |
645 | ideapad_input_report(priv, 65); | 646 | ideapad_input_report(priv, 65); |
646 | break; | 647 | break; |
@@ -648,6 +649,9 @@ static void ideapad_check_special_buttons(struct ideapad_private *priv) | |||
648 | /* OneKey Theater button */ | 649 | /* OneKey Theater button */ |
649 | ideapad_input_report(priv, 64); | 650 | ideapad_input_report(priv, 64); |
650 | break; | 651 | break; |
652 | default: | ||
653 | pr_info("Unknown special button: %lu\n", bit); | ||
654 | break; | ||
651 | } | 655 | } |
652 | } | 656 | } |
653 | } | 657 | } |