OSDN Git Service

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)
commitacf7f4a59114471c3964f118564fe8e7a6f34bb8
treed5131a5d3d09113df52b83fbf7f97d73a5509966
parentdf11f6c516cdeb98624f4189ab4e00aeeaaaafe6
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