aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2018-04-24 16:56:04 -0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-05-07 15:10:31 +0300
commitedd1ed73025ca0da4607d8e93b42196e6b005e12 (patch)
treed1da740dcea0a0fb0f7b2b1ef111a312e79f5beb /drivers/platform
parentplatform/x86: thinkpad_acpi: silence HKEY 0x6032, 0x60f0, 0x6030 (diff)
downloadlinux-dev-edd1ed73025ca0da4607d8e93b42196e6b005e12.tar.xz
linux-dev-edd1ed73025ca0da4607d8e93b42196e6b005e12.zip
platform/x86: thinkpad_acpi: do not report thermal sensor state for tablet mode switch
We should not do a thermal sensors state dump to the kernel log just because the laptop is reporting that it changed into or out of tablet mode. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Tested-by: Jordan Glover <Golden_Miller83@protonmail.ch> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index cf25f0121d3b..3d70ef7e8a68 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -4098,7 +4098,7 @@ static bool hotkey_notify_6xxx(const u32 hkey,
tpacpi_input_send_tabletsw();
hotkey_tablet_mode_notify_change();
*send_acpi_ev = false;
- break;
+ return true;
case TP_HKEY_EV_PALM_DETECTED:
case TP_HKEY_EV_PALM_UNDETECTED: