aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rfkill.h
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2008-08-02 14:10:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:56 -0400
commit9961920199ec88d6b581d3e38502088935925c04 (patch)
tree38a20b8d4441b4b2a6e033bc9e7a7e6863e72397 /include/linux/rfkill.h
parent02589f60510030a3c1496e7a8c511e4f674ef5ff (diff)
rfkill: add default global states (v2)
Add a second set of global states, "rfkill_default_states", to track the state that will be used when the first rfkill class of a given type is registered, and also to save "undo" information when rfkill_epo is called. Add a new exported function, rfkill_set_default(), which can be used by platform drivers to restore radio state saved by the platform across reboots or shutdown. Also, fix rfkill_epo to properly update rfkill_states, but still preserve a copy of the state so that we can undo the effect of rfkill_epo later if we want to. Add rfkill_restore_states() to restore rfkill_states from the copy. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/rfkill.h')
-rw-r--r--include/linux/rfkill.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index 741d1a62cc3f..aa3c7d5852f6 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -116,6 +116,7 @@ int rfkill_register(struct rfkill *rfkill);
116void rfkill_unregister(struct rfkill *rfkill); 116void rfkill_unregister(struct rfkill *rfkill);
117 117
118int rfkill_force_state(struct rfkill *rfkill, enum rfkill_state state); 118int rfkill_force_state(struct rfkill *rfkill, enum rfkill_state state);
119int rfkill_set_default(enum rfkill_type type, enum rfkill_state state);
119 120
120/** 121/**
121 * rfkill_state_complement - return complementar state 122 * rfkill_state_complement - return complementar state