ACPI: thinkpad-acpi: export to sysfs the state of the radio slider switch
commita54d9d30d471108e11224cc457dd9eb3039b65a1
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 30 Jun 2007 23:21:42 +0000 (30 20:21 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 23 Sep 2007 12:30:52 +0000 (23 09:30 -0300)
tree5df556ca353acb731135ffd0517303d2ece353a3
parent0ecaea9fd1469296582f31d8f1588b806e035803
ACPI: thinkpad-acpi: export to sysfs the state of the radio slider switch

Some ThinkPad models, notably the T60 and X60, have a slider switch to
enable and disable the radios.  The switch has the capability of
force-disabling the radios in hardware on most models, and it is supposed
to affect all radios (WLAN, WWAN, BlueTooth).

Export the switch state as a sysfs attribute, on ThinkPads where it is
available.

Thanks to Henning Schild for asking for this feature, and for tracking down
the EC register that holds the radio switch state.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Henning Schild <henning@wh9.tu-dresden.de>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h