diff options
Diffstat (limited to 'include/linux/rfkill.h')
-rw-r--r-- | include/linux/rfkill.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h index 7c116f6631b8..ee3eddea8568 100644 --- a/include/linux/rfkill.h +++ b/include/linux/rfkill.h | |||
@@ -261,6 +261,13 @@ void rfkill_set_states(struct rfkill *rfkill, bool sw, bool hw); | |||
261 | * registered drivers? | 261 | * registered drivers? |
262 | */ | 262 | */ |
263 | void rfkill_set_global_sw_state(const enum rfkill_type type, bool blocked); | 263 | void rfkill_set_global_sw_state(const enum rfkill_type type, bool blocked); |
264 | |||
265 | /** | ||
266 | * rfkill_blocked - query rfkill block | ||
267 | * | ||
268 | * @rfkill: rfkill struct to query | ||
269 | */ | ||
270 | bool rfkill_blocked(struct rfkill *rfkill); | ||
264 | #else /* !RFKILL */ | 271 | #else /* !RFKILL */ |
265 | static inline struct rfkill * __must_check | 272 | static inline struct rfkill * __must_check |
266 | rfkill_alloc(const char *name, | 273 | rfkill_alloc(const char *name, |
@@ -313,6 +320,11 @@ static inline void rfkill_set_global_sw_state(const enum rfkill_type type, | |||
313 | bool blocked) | 320 | bool blocked) |
314 | { | 321 | { |
315 | } | 322 | } |
323 | |||
324 | static inline bool rfkill_blocked(struct rfkill *rfkill) | ||
325 | { | ||
326 | return false; | ||
327 | } | ||
316 | #endif /* RFKILL || RFKILL_MODULE */ | 328 | #endif /* RFKILL || RFKILL_MODULE */ |
317 | 329 | ||
318 | 330 | ||