aboutsummaryrefslogtreecommitdiffstats
path: root/net/rfkill/rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rfkill/rfkill.c')
-rw-r--r--net/rfkill/rfkill.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
index ce0e23148cdd..aa7039dfa19d 100644
--- a/net/rfkill/rfkill.c
+++ b/net/rfkill/rfkill.c
@@ -130,17 +130,19 @@ static void update_rfkill_state(struct rfkill *rfkill)
130 130
131/** 131/**
132 * rfkill_toggle_radio - wrapper for toggle_radio hook 132 * rfkill_toggle_radio - wrapper for toggle_radio hook
133 * calls toggle_radio taking into account a lot of "small" 133 *
134 * details.
135 * @rfkill: the rfkill struct to use 134 * @rfkill: the rfkill struct to use
136 * @force: calls toggle_radio even if cache says it is not needed, 135 * @force: calls toggle_radio even if cache says it is not needed,
137 * and also makes sure notifications of the state will be 136 * and also makes sure notifications of the state will be
138 * sent even if it didn't change 137 * sent even if it didn't change
139 * @state: the new state to call toggle_radio() with 138 * @state: the new state to call toggle_radio() with
140 * 139 *
141 * This wrappen protects and enforces the API for toggle_radio 140 * Calls rfkill->toggle_radio, enforcing the API for toggle_radio
142 * calls. Note that @force cannot override a (possibly cached) 141 * calls and handling all the red tape such as issuing notifications
143 * state of RFKILL_STATE_HARD_BLOCKED. Any device making use of 142 * if the call is successful.
143 *
144 * Note that @force cannot override a (possibly cached) state of
145 * RFKILL_STATE_HARD_BLOCKED. Any device making use of
144 * RFKILL_STATE_HARD_BLOCKED implements either get_state() or 146 * RFKILL_STATE_HARD_BLOCKED implements either get_state() or
145 * rfkill_force_state(), so the cache either is bypassed or valid. 147 * rfkill_force_state(), so the cache either is bypassed or valid.
146 * 148 *