aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/rfkill.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/rfkill.h')
-rw-r--r--drivers/net/wireless/b43/rfkill.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/drivers/net/wireless/b43/rfkill.h b/drivers/net/wireless/b43/rfkill.h
index 05db0d67a92e..29544e8c9e5f 100644
--- a/drivers/net/wireless/b43/rfkill.h
+++ b/drivers/net/wireless/b43/rfkill.h
@@ -7,19 +7,25 @@ struct b43_wldev;
7#ifdef CONFIG_B43_RFKILL 7#ifdef CONFIG_B43_RFKILL
8 8
9#include <linux/rfkill.h> 9#include <linux/rfkill.h>
10#include <linux/input-polldev.h>
11
10 12
11struct b43_rfkill { 13struct b43_rfkill {
12 /* The RFKILL subsystem data structure */ 14 /* The RFKILL subsystem data structure */
13 struct rfkill *rfkill; 15 struct rfkill *rfkill;
16 /* The poll device for the RFKILL input button */
17 struct input_polled_dev *poll_dev;
14 /* The unique name of this rfkill switch */ 18 /* The unique name of this rfkill switch */
15 char name[32]; 19 char name[32];
16 /* Workqueue for asynchronous notification. */
17 struct work_struct notify_work;
18}; 20};
19 21
22/* All the init functions return void, because we are not interested
23 * in failing the b43 init process when rfkill init failed. */
24void b43_rfkill_alloc(struct b43_wldev *dev);
25void b43_rfkill_free(struct b43_wldev *dev);
20void b43_rfkill_init(struct b43_wldev *dev); 26void b43_rfkill_init(struct b43_wldev *dev);
21void b43_rfkill_exit(struct b43_wldev *dev); 27void b43_rfkill_exit(struct b43_wldev *dev);
22void b43_rfkill_toggled(struct b43_wldev *dev, bool on); 28
23char * b43_rfkill_led_name(struct b43_wldev *dev); 29char * b43_rfkill_led_name(struct b43_wldev *dev);
24 30
25 31
@@ -30,13 +36,16 @@ struct b43_rfkill {
30 /* empty */ 36 /* empty */
31}; 37};
32 38
33static inline void b43_rfkill_init(struct b43_wldev *dev) 39static inline void b43_rfkill_alloc(struct b43_wldev *dev)
34{ 40{
35} 41}
36static inline void b43_rfkill_exit(struct b43_wldev *dev) 42static inline void b43_rfkill_free(struct b43_wldev *dev)
37{ 43{
38} 44}
39static inline void b43_rfkill_toggled(struct b43_wldev *dev, bool on) 45static inline void b43_rfkill_init(struct b43_wldev *dev)
46{
47}
48static inline void b43_rfkill_exit(struct b43_wldev *dev)
40{ 49{
41} 50}
42static inline char * b43_rfkill_led_name(struct b43_wldev *dev) 51static inline char * b43_rfkill_led_name(struct b43_wldev *dev)