]> git.baikalelectronics.ru Git - kernel.git/commit
rfkill: Add the capability to switch all devices of all type in __rfkill_switch_all().
authorAlex Hung <alex.hung@canonical.com>
Wed, 23 May 2012 06:11:52 +0000 (14:11 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Jun 2012 19:18:17 +0000 (15:18 -0400)
commit683255e138f85fa76f688a4a06f601c86eecaf3a
tree918a62cf0d9a03334bc93e23b6a2a627fd32d052
parent400819a208e92fa1a12ec00777c20cdcfac6268d
rfkill: Add the capability to switch all devices of all type in __rfkill_switch_all().

__rfkill_switch_all() switches the state of devices of a given type; however,
it does not switch devices of all type (RFKILL_TYPE_ALL). As a result, it
ignores the keycode "KEY_RFKILL" from another module, i.e. eeepc-wmi.

This fix is to make __rfkill_switch_all() to be able to switch not only
devices of a given type but also all devices.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/core.c