aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/ideapad-laptop.c
diff options
context:
space:
mode:
authorIke Panhc <ike.pan@canonical.com>2012-05-03 05:38:46 -0400
committerMatthew Garrett <mjg@redhat.com>2012-05-31 14:23:40 -0400
commit20a769c1c6671d3b8d18a7358eff15e3dd29e94b (patch)
tree206ccd8095f97e99c020ada7237396fc0191f563 /drivers/platform/x86/ideapad-laptop.c
parenta5c3892f56df57e2e1c0a069d72d1b20a1db202d (diff)
ideapad: generate valid key event only
Otherwise will generate KEY_UNKNOWN on un-listed vpc event, which means nothing and is hard for user to report the detail of the event. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/ideapad-laptop.c')
-rw-r--r--drivers/platform/x86/ideapad-laptop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 00d82f168c5..4f20f8dd3d7 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -784,6 +784,10 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
784 case 9: 784 case 9:
785 ideapad_sync_rfk_state(priv); 785 ideapad_sync_rfk_state(priv);
786 break; 786 break;
787 case 13:
788 case 6:
789 ideapad_input_report(priv, vpc_bit);
790 break;
787 case 4: 791 case 4:
788 ideapad_backlight_notify_brightness(priv); 792 ideapad_backlight_notify_brightness(priv);
789 break; 793 break;
@@ -794,7 +798,7 @@ static void ideapad_acpi_notify(struct acpi_device *adevice, u32 event)
794 ideapad_backlight_notify_power(priv); 798 ideapad_backlight_notify_power(priv);
795 break; 799 break;
796 default: 800 default:
797 ideapad_input_report(priv, vpc_bit); 801 pr_info("Unknown event: %lu\n", vpc_bit);
798 } 802 }
799 } 803 }
800 } 804 }