ia64/kvm: compilation fix. export account_system_vtime.
[pv_ops_mirror.git] / drivers / net / wireless / b43 / rfkill.h
blobadacf936d815be2170b973da1cbb997fff7b974b
1 #ifndef B43_RFKILL_H_
2 #define B43_RFKILL_H_
4 struct b43_wldev;
7 #ifdef CONFIG_B43_RFKILL
9 #include <linux/rfkill.h>
10 #include <linux/input-polldev.h>
13 struct b43_rfkill {
14 /* The RFKILL subsystem data structure */
15 struct rfkill *rfkill;
16 /* The poll device for the RFKILL input button */
17 struct input_polled_dev *poll_dev;
18 /* Did initialization succeed? Used for freeing. */
19 bool registered;
20 /* The unique name of this rfkill switch */
21 char name[sizeof("b43-phy4294967295")];
24 /* The init function returns void, because we are not interested
25 * in failing the b43 init process when rfkill init failed. */
26 void b43_rfkill_init(struct b43_wldev *dev);
27 void b43_rfkill_exit(struct b43_wldev *dev);
29 char * b43_rfkill_led_name(struct b43_wldev *dev);
32 #else /* CONFIG_B43_RFKILL */
33 /* No RFKILL support. */
35 struct b43_rfkill {
36 /* empty */
39 static inline void b43_rfkill_init(struct b43_wldev *dev)
42 static inline void b43_rfkill_exit(struct b43_wldev *dev)
45 static inline char * b43_rfkill_led_name(struct b43_wldev *dev)
47 return NULL;
50 #endif /* CONFIG_B43_RFKILL */
52 #endif /* B43_RFKILL_H_ */