summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2009-09-20 19:09:24 +0200
committerLen Brown <len.brown@intel.com>2009-09-20 19:45:15 +0200
commit176dd98523fee4836210bc0834c8e3e6a93247bf (patch)
tree20b059599a12c3beab4787957ecfea8b224080a9 /drivers/platform/x86
parentthinkpad-acpi: remove uneeded tp_features.hotkey tests in hotkey_exit (diff)
downloadlinux-176dd98523fee4836210bc0834c8e3e6a93247bf.tar.xz
linux-176dd98523fee4836210bc0834c8e3e6a93247bf.zip
thinkpad-acpi: drop HKEY event 0x5010
HKEY event 0x5010 is useless to us: old ThinkPads don't issue it. Newer ThinkPads won't issue it anymore. And all ThinkPads issue 0x1010 and 0x1011 events. Just silently drop it instead of sending it to userspace. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 1b4d6f686bf0..66ba5f57d786 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -3305,7 +3305,6 @@ static bool hotkey_notify_usrevent(const u32 hkey,
*ignore_acpi_ev = false;
switch (hkey) {
- case 0x5010: /* Lenovo new BIOS: brightness changed */
case 0x500b: /* X61t: tablet pen inserted into bay */
case 0x500c: /* X61t: tablet pen removed from bay */
return true;
@@ -3317,9 +3316,10 @@ static bool hotkey_notify_usrevent(const u32 hkey,
*send_acpi_ev = false;
return true;
- case 0x5001:
- case 0x5002:
- /* LID switch events. Do not propagate */
+ case 0x5001: /* Lid close */
+ case 0x5002: /* Lid open */
+ case 0x5010: /* brightness control */
+ /* do not propagate these events */
*ignore_acpi_ev = true;
return true;