ACPI: thinkpad-acpi: export to sysfs the state of the radio slider switch
commit28d8a199f2298f38320f77d6e7031162cffb9520
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 30 Jun 2007 20:21:42 +0000 (30 17:21 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 1 Jul 2007 17:26:24 +0000 (1 14:26 -0300)
treeeb31320cbc9e1ce94e3bbf322a01969b33c88a4f
parent36393c0f687831015a8917ecb4c08545e5f1acd0
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