OSDN Git Service

platform/x86: thinkpad_acpi: Add palm sensor support
authorMark Pearson <markpearson@lenovo.com>
Tue, 24 Nov 2020 18:11:54 +0000 (13:11 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 25 Nov 2020 16:22:00 +0000 (17:22 +0100)
commit1ac09656bded6e4ea9312631579dd32189e00e62
tree2d098e740c46e312b5784ae4ec5f36432ce82a89
parent72ceec58685f8a5c2ec22d9617c7b1e239e2e809
platform/x86: thinkpad_acpi: Add palm sensor support

Add support to thinkpad_acpi for returning the status of the palm
sensor.

This patch builds on the work done previously for the input device
implementation (which was not needed). Both lap and palm sensor are using
sysfs and they are combined into the proxsensor block.

Note: On some platforms, because of an issue in the HW implementation,
the palm sensor presence may be incorrectly advertised as always
enabled even if a palm sensor is not present. The palm sensor is
intended for WWAN transmission power control and should be available
and correct on all WWAN enabled systems. It is not recommended to use
this interface for other use cases.

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20201124181154.547518-1-markpearson@lenovo.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c