diff options
author | Thomas Renninger <trenn@suse.de> | 2010-05-21 10:18:13 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:48:42 -0400 |
commit | 1bbdfd5961e83a1e3037d9362094bd09e0b066ab (patch) | |
tree | d7c43aa72c6568f83bfd886b5212e5b7eec441cb | |
parent | f6b2ff0821fb1b05a24beb6b343aa80e8a383a9e (diff) |
x86 platform drivers: hp-wmi Set placeholder for unimplemented events
Rather than print unknown events when we know what caused them
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
CC: linux-acpi@vger.kernel.org
CC: platform-driver-x86@vger.kernel.org
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index f3ae911cbab9..cd445019a6b7 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c | |||
@@ -53,6 +53,7 @@ MODULE_ALIAS("wmi:5FB7F034-2C63-45e9-BE91-3D44E2C707E4"); | |||
53 | #define HPWMI_HOTKEY_QUERY 0xc | 53 | #define HPWMI_HOTKEY_QUERY 0xc |
54 | 54 | ||
55 | #define PREFIX "HP WMI: " | 55 | #define PREFIX "HP WMI: " |
56 | #define UNIMP "Unimplemented " | ||
56 | 57 | ||
57 | enum hp_wmi_radio { | 58 | enum hp_wmi_radio { |
58 | HPWMI_WIFI = 0, | 59 | HPWMI_WIFI = 0, |
@@ -62,8 +63,12 @@ enum hp_wmi_radio { | |||
62 | 63 | ||
63 | enum hp_wmi_event_ids { | 64 | enum hp_wmi_event_ids { |
64 | HPWMI_DOCK_EVENT = 1, | 65 | HPWMI_DOCK_EVENT = 1, |
66 | HPWMI_PARK_HDD = 2, | ||
67 | HPWMI_SMART_ADAPTER = 3, | ||
65 | HPWMI_BEZEL_BUTTON = 4, | 68 | HPWMI_BEZEL_BUTTON = 4, |
66 | HPWMI_WIRELESS = 5, | 69 | HPWMI_WIRELESS = 5, |
70 | HPWMI_CPU_BATTERY_THROTTLE = 6, | ||
71 | HPWMI_LOCK_SWITCH = 7, | ||
67 | }; | 72 | }; |
68 | 73 | ||
69 | static int __devinit hp_wmi_bios_setup(struct platform_device *device); | 74 | static int __devinit hp_wmi_bios_setup(struct platform_device *device); |
@@ -374,6 +379,10 @@ static void hp_wmi_notify(u32 value, void *context) | |||
374 | hp_wmi_tablet_state()); | 379 | hp_wmi_tablet_state()); |
375 | input_sync(hp_wmi_input_dev); | 380 | input_sync(hp_wmi_input_dev); |
376 | break; | 381 | break; |
382 | case HPWMI_PARK_HDD: | ||
383 | break; | ||
384 | case HPWMI_SMART_ADAPTER: | ||
385 | break; | ||
377 | case HPWMI_BEZEL_BUTTON: | 386 | case HPWMI_BEZEL_BUTTON: |
378 | key_code = hp_wmi_perform_query(HPWMI_HOTKEY_QUERY, 0, | 387 | key_code = hp_wmi_perform_query(HPWMI_HOTKEY_QUERY, 0, |
379 | 0); | 388 | 0); |
@@ -407,6 +416,12 @@ static void hp_wmi_notify(u32 value, void *context) | |||
407 | hp_wmi_get_sw_state(HPWMI_WWAN), | 416 | hp_wmi_get_sw_state(HPWMI_WWAN), |
408 | hp_wmi_get_hw_state(HPWMI_WWAN)); | 417 | hp_wmi_get_hw_state(HPWMI_WWAN)); |
409 | break; | 418 | break; |
419 | case HPWMI_CPU_BATTERY_THROTTLE: | ||
420 | printk(KERN_INFO PREFIX UNIMP "CPU throttle because of 3 Cell" | ||
421 | " battery event detected\n"); | ||
422 | break; | ||
423 | case HPWMI_LOCK_SWITCH: | ||
424 | break; | ||
410 | default: | 425 | default: |
411 | printk(KERN_INFO PREFIX "Unknown eventcode - %d\n", | 426 | printk(KERN_INFO PREFIX "Unknown eventcode - %d\n", |
412 | eventcode); | 427 | eventcode); |