]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: lap or desk mode interface
authorMark Pearson <markpearson@lenovo.com>
Fri, 3 Jul 2020 01:23:53 +0000 (21:23 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jul 2020 09:45:06 +0000 (12:45 +0300)
commit27dbe6243bd54b3541673b1baf6e871c2c057d5d
treed5131a5d3d09113df52b83fbf7f97d73a5509966
parent0601deebcb90f5ddf9f09256ae6ae7129f99c5ce
platform/x86: thinkpad_acpi: lap or desk mode interface

Newer Lenovo Thinkpad platforms have support to identify whether the
system is on-lap or not using an ACPI DYTC event from the firmware.

This patch provides the ability to retrieve the current mode via sysfs
entrypoints and will be used by userspace for thermal mode and WWAN
functionality

Co-developed-by: Nitin Joshi <njoshi1@lenovo.com>
Signed-off-by: Nitin Joshi <njoshi1@lenovo.com>
Reviewed-by: Sugumaran <slacshiminar@lenovo.com>
Reviewed-by: Bastien Nocera <bnocera@redhat.com>
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Documentation/admin-guide/laptops/thinkpad-acpi.rst
drivers/platform/x86/thinkpad_acpi.c