summaryrefslogtreecommitdiff
path: root/net/rfkill
diff options
context:
space:
mode:
authorAceLan Kao <acelan.kao@canonical.com>2012-07-26 05:51:08 +0400
committerJohannes Berg <johannes.berg@intel.com>2012-08-21 22:50:25 +0400
commit06d7de831dab8b93adb86e039a2f3d36604a9197 (patch)
tree25d705b75ae55c090a4cafc866e9a6fa3c056d68 /net/rfkill
parentdcf33963c48e1959c83fda84e336dbb000eefa3f (diff)
downloadlinux-06d7de831dab8b93adb86e039a2f3d36604a9197.tar.xz
Revert "rfkill: remove dead code"
This reverts commit 2e48928d8a0f38c1b5c81eb3f1294de8a6382c68. Those functions are needed and should not be removed, or there is no way to set the rfkill led trigger name. Signed-off-by: AceLan Kao <acelan.kao@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/rfkill')
-rw-r--r--net/rfkill/core.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index 752b72360ebc..c275bad12068 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -150,6 +150,20 @@ static void rfkill_led_trigger_activate(struct led_classdev *led)
rfkill_led_trigger_event(rfkill);
}
+const char *rfkill_get_led_trigger_name(struct rfkill *rfkill)
+{
+ return rfkill->led_trigger.name;
+}
+EXPORT_SYMBOL(rfkill_get_led_trigger_name);
+
+void rfkill_set_led_trigger_name(struct rfkill *rfkill, const char *name)
+{
+ BUG_ON(!rfkill);
+
+ rfkill->ledtrigname = name;
+}
+EXPORT_SYMBOL(rfkill_set_led_trigger_name);
+
static int rfkill_led_trigger_register(struct rfkill *rfkill)
{
rfkill->led_trigger.name = rfkill->ledtrigname