]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
thinkpad-acpi: drop HKEY event 0x5010
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 17:09:24 +0000 (14:09 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 20 Sep 2009 17:45:15 +0000 (13:45 -0400)
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>
Documentation/laptops/thinkpad-acpi.txt
drivers/platform/x86/thinkpad_acpi.c

index 6d03487ef1c71ea3a3ea6cc30240e2a0c9f9d5d4..f635fb09d62092443ffd7045df40c2a181a8ce81 100644 (file)
@@ -525,6 +525,7 @@ compatibility purposes when hotkey_report_mode is set to 1.
 0x2305         System is waking up from suspend to eject bay
 0x2404         System is waking up from hibernation to undock
 0x2405         System is waking up from hibernation to eject bay
+0x5010         Brightness level changed/control event
 
 The above events are never propagated by the driver.
 
@@ -532,7 +533,6 @@ The above events are never propagated by the driver.
 0x4003         Undocked (see 0x2x04), can sleep again
 0x500B         Tablet pen inserted into its storage bay
 0x500C         Tablet pen removed from its storage bay
-0x5010         Brightness level changed (newer Lenovo BIOSes)
 
 The above events are propagated by the driver.
 
index 1b4d6f686bf041a5953f7e40c5e9002b574dd56f..66ba5f57d786fd793bee45341c6dd5b5a7bd0408 100644 (file)
@@ -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;