ACPI: thinkpad-acpi: add bluetooth and WWAN rfkill support
commitf048e9c894e7dd859531591f28f6f9cd63282e15
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 29 Jun 2008 14:46:13 +0000 (29 11:46 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 29 Jun 2008 14:46:13 +0000 (29 11:46 -0300)
tree448d102fbde7e6fe903ac45899d9ec02f4488290
parentc9e0dd725780fef367cadcad8ec4e0d18ab4fb8d
ACPI: thinkpad-acpi: add bluetooth and WWAN rfkill support

Add a read/write rfkill interface to the bluetooth radio switch on the
bluetooth submodule, and one for the wireless wan radio switch to the wan
submodule.

Since rfkill does care for when a switch changes state, use WLSW
notifications to also check if the WWAN or Bluetooth switches did not
change state (due to them being slaves of WLSW in firmware/hardware, but
that reality not being always properly exported by the thinkpad firmware).

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: John W. Linville <linville@tuxdriver.com>
Documentation/thinkpad-acpi.txt
drivers/misc/Kconfig
drivers/misc/thinkpad_acpi.c