rfkill - Add rfkill driver to misc input devices
Subsystems (4)
PATCH 1/2 rfkill - Add rfkill driver to misc input devices
This will add the rfkill driver to the input/misc section of the kernel. rfkill is usefull for newtwork devices that contain a hardware button to enable or disable the radio.
With rfkill a generic interface is created for the network drivers, as well as providing a uniform way for userspace to listen to the hardware button events.
Signed-off-by Ivo van Doorn <[email protected]>
---
drivers/input/misc/Kconfig +15 -0
@@ -79,4 +79,19 @@ config HP_SDC_RTC Say Y here if you want to support the built-in real time clock of the HP SDC controller. +config RFKILL + tristate "RF button support" + help + If you say yes here, the rfkill driver will be build + which allowed network devices to register their hardware + RF button which controls the radio state. This driver + will then create an input device for it. + + When the input device is not used, the rfkill driver + will make sure that when the RF button is pressed the radio + is enabled or disabled accordingly. When the input device + has been opened by the user this radio control will be left + to the user, and rfkill will only send the RF button status + change to userspace. + endif
drivers/input/misc/Makefile +1 -0
@@ -11,3 +11,4 @@ obj-$(CONFIG_INPUT_UINPUT) += uinput.o obj-$(CONFIG_INPUT_WISTRON_BTNS) += wistron_btns.o obj-$(CONFIG_HP_SDC_RTC) += hp_sdc_rtc.o obj-$(CONFIG_INPUT_IXP4XX_BEEPER) += ixp4xx-beeper.o +obj-$(CONFIG_RFKILL) += rfkill.o
drivers/input/misc/rfkill.c new file +210 -0
210 lines not on this page · raw message
include/linux/input.h +1 -0
@@ -488,6 +488,7 @@ #define KEY_PREVIOUS 0x19c#define KEY_DIGITS 0x19d#define KEY_TEEN 0x19e#define KEY_TWEN 0x19f +#define KEY_RFKILL 0x1a0#define KEY_DEL_EOL 0x1c0#define KEY_DEL_EOS 0x1c1
include/linux/rfkill.h new file +98 -0
98 lines not on this page · raw message
Quoted 6 lines · Ivo van Doorn
This will add the rfkill driver to the input/misc section of the kernel. rfkill is usefull for newtwork devices that contain a hardware button to enable or disable the radio.
With rfkill a generic interface is created for the network drivers, as well as providing a uniform way for userspace to listen to the hardware button events.
You need to send this patch to lkml and to input subsystem maintainer.
Jiri
Signature · 2 lines
Jiri Benc SUSE Labs