diff options
Diffstat (limited to 'drivers/net/wireless/b43/rfkill.h')
-rw-r--r-- | drivers/net/wireless/b43/rfkill.h | 21 |
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 | ||
11 | struct b43_rfkill { | 13 | struct 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. */ | ||
24 | void b43_rfkill_alloc(struct b43_wldev *dev); | ||
25 | void b43_rfkill_free(struct b43_wldev *dev); | ||
20 | void b43_rfkill_init(struct b43_wldev *dev); | 26 | void b43_rfkill_init(struct b43_wldev *dev); |
21 | void b43_rfkill_exit(struct b43_wldev *dev); | 27 | void b43_rfkill_exit(struct b43_wldev *dev); |
22 | void b43_rfkill_toggled(struct b43_wldev *dev, bool on); | 28 | |
23 | char * b43_rfkill_led_name(struct b43_wldev *dev); | 29 | char * 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 | ||
33 | static inline void b43_rfkill_init(struct b43_wldev *dev) | 39 | static inline void b43_rfkill_alloc(struct b43_wldev *dev) |
34 | { | 40 | { |
35 | } | 41 | } |
36 | static inline void b43_rfkill_exit(struct b43_wldev *dev) | 42 | static inline void b43_rfkill_free(struct b43_wldev *dev) |
37 | { | 43 | { |
38 | } | 44 | } |
39 | static inline void b43_rfkill_toggled(struct b43_wldev *dev, bool on) | 45 | static inline void b43_rfkill_init(struct b43_wldev *dev) |
46 | { | ||
47 | } | ||
48 | static inline void b43_rfkill_exit(struct b43_wldev *dev) | ||
40 | { | 49 | { |
41 | } | 50 | } |
42 | static inline char * b43_rfkill_led_name(struct b43_wldev *dev) | 51 | static inline char * b43_rfkill_led_name(struct b43_wldev *dev) |