platform/x86: thinkpad_acpi: sysfs interface to get wwan antenna type
authorNitin Joshi <nitjoshi@gmail.com>
Wed, 17 Mar 2021 02:46:36 +0000 (11:46 +0900)
committerHans de Goede <hdegoede@redhat.com>
Sun, 21 Mar 2021 17:04:19 +0000 (18:04 +0100)
commit3feb52a2b8d97989823f1aa9cfff281b8475ff4e
treed3e99f5d31afc7c80ed79e316d8f1452cf218056
parent2728f39dfc720983e2b69f0f1f0c403aaa7c346f
platform/x86: thinkpad_acpi: sysfs interface to get wwan antenna type

On some newer Thinkpads we need to set SAR value based on antenna type.
This patch provides a sysfs interface that userspace can use to get
antenna type and set corresponding SAR value, as is required for FCC
certification.

Reviewed-by: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: Nitin Joshi <njoshi1@lenovo.com>
Link: https://lore.kernel.org/r/20210317024636.356175-1-njoshi1@lenovo.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/admin-guide/laptops/thinkpad-acpi.rst
drivers/platform/x86/thinkpad_acpi.c