x86: Add amilo-rfkill driver for some Fujitsu-Siemens Amilo laptops
PATCH 1/1 x86: Add amilo-rfkill driver for some Fujitsu-Siemens Amilo laptops
An rfkill driver based on the fsaa1655g and fsam7440 drivers for Fujitsu-Siemens Amilo A1655 and M7440 models found at:
http://sourceforge.net/projects/fsaa1655g/
http://sourceforge.net/projects/fsam7440/
This adds DMI matching and replaces the procfs files with rfkill devices.
--- drivers/platform/x86/Kconfig | 7 ++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/amilo-rfkill.c | 187 +++++++++++++++++++++++++++++++++++ 3 files changed, 195 insertions(+), 0 deletions(-) create mode 100644 drivers/platform/x86/amilo-rfkill.c
drivers/platform/x86/Kconfig +7 -0
@@ -141,6 +141,13 @@ config FUJITSU_LAPTOP_DEBUG If you are not sure, say N here. +config AMILO_RFKILL + tristate "Fujitsu-Siemens Amilo rfkill support" + depends on RFKILL + ---help--- + This is a driver for enabling wifi on some Fujitsu-Siemens Amilo + laptops. + config TC1100_WMI tristate "HP Compaq TC1100 Tablet WMI Extras (EXPERIMENTAL)" depends on !X86_64
drivers/platform/x86/Makefile +1 -0
@@ -17,6 +17,7 @@ obj-$(CONFIG_ACER_WMI) += acer-wmi.o obj-$(CONFIG_ACERHDF) += acerhdf.o obj-$(CONFIG_HP_ACCEL) += hp_accel.o obj-$(CONFIG_HP_WMI) += hp-wmi.o +obj-$(CONFIG_AMILO_RFKILL) += amilo-rfkill.o obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o obj-$(CONFIG_IDEAPAD_LAPTOP) += ideapad-laptop.o
drivers/platform/x86/amilo-rfkill.c new file +187 -0
187 lines not on this page · raw message
Signature · 1 line
1.7.7
drivers/platform/x86/amilo-rfkill.c line 26
Quoted 4 lines · Ben Hutchings
drivers/platform/x86/amilo-rfkill.c new file +4
-0+static bool init_blocked = false; + +/* Initial state set by 'radio' parameter, as in the fsaa1655g driver */ +module_param_named (radio, init_blocked, invbool,0 );
I wonder what you need this for -- it shouldn't be necessary and the way rfkill_init_sw_state() works might cause unexpected behaviour. I recommend leaving that out, if you do leave it out rfkill will set the desired state of the device as soon as the device is registered.
johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html