From: Matthew Thode <mth...@mthode.org>

Signed-off-by: Matthew Thode <mth...@mthode.org>
---
 drivers/platform/x86/thinkpad_acpi.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/platform/x86/thinkpad_acpi.c 
b/drivers/platform/x86/thinkpad_acpi.c
index 117be48ff..c4af0ea86 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -198,6 +198,8 @@ enum tpacpi_hkey_event_t {
        TP_HKEY_EV_PEN_INSERTED         = 0x500b, /* tablet pen inserted */
        TP_HKEY_EV_PEN_REMOVED          = 0x500c, /* tablet pen removed */
        TP_HKEY_EV_BRGHT_CHANGED        = 0x5010, /* backlight control event */
+       TP_HKEY_EV_PALM_DETECT          = 0x60b0, /* detected palm over 
keyboard */
+       TP_HKEY_EV_PALM_UNDETECT        = 0x60b1, /* detected removal of palm 
over keyboard */
 
        /* Key-related user-interface events */
        TP_HKEY_EV_KEY_NUMLOCK          = 0x6000, /* NumLock key pressed */
@@ -4079,6 +4081,17 @@ static bool hotkey_notify_6xxx(const u32 hkey,
                *send_acpi_ev = false;
                break;
 
+       case TP_HKEY_EV_PALM_UNDETECT:
+               /* we do nothing here */
+               *send_acpi_ev = false;
+               *ignore_acpi_ev = true;
+               return true;
+       case TP_HKEY_EV_PALM_DETECT:
+               /* we do nothing here */
+               *send_acpi_ev = false;
+               *ignore_acpi_ev = true;
+               return true;
+
        default:
                pr_warn("unknown possible thermal alarm or keyboard event 
received\n");
                known = false;
-- 
2.13.6


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

Reply via email to