diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-07-04 08:51:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-08 14:16:03 -0400 |
commit | 50db7875d9dcd89f7624b13535738612faf8db0c (patch) | |
tree | 40533fe7fc13cad3a343754644757b5809a213c4 /drivers/net/wireless/rt2x00/rt2x00lib.h | |
parent | f2cae6c5e41a979f85463aff60877b31fa3a383d (diff) |
rt2x00: Remove input_polldev requirements for rfkill
With the new rfkill interface there is no longer a need
for the input_polldev. Create a delayed_work structure
which we can put on the mac80211 workqueue and poll the
hardware every 1000ms.
v2: Decrease poll frequency from 100ms to 1000ms
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index 1d1f0749375e..eae5ce1d4de3 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -33,7 +33,7 @@ | |||
33 | * Both the link tuner as the rfkill will be called once per second. | 33 | * Both the link tuner as the rfkill will be called once per second. |
34 | */ | 34 | */ |
35 | #define LINK_TUNE_INTERVAL ( round_jiffies_relative(HZ) ) | 35 | #define LINK_TUNE_INTERVAL ( round_jiffies_relative(HZ) ) |
36 | #define RFKILL_POLL_INTERVAL ( 1000 ) | 36 | #define RFKILL_POLL_INTERVAL ( round_jiffies_relative(HZ) ) |
37 | 37 | ||
38 | /* | 38 | /* |
39 | * rt2x00_rate: Per rate device information | 39 | * rt2x00_rate: Per rate device information |
@@ -204,8 +204,6 @@ void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev); | |||
204 | void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev); | 204 | void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev); |
205 | void rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev); | 205 | void rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev); |
206 | void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev); | 206 | void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev); |
207 | void rt2x00rfkill_suspend(struct rt2x00_dev *rt2x00dev); | ||
208 | void rt2x00rfkill_resume(struct rt2x00_dev *rt2x00dev); | ||
209 | #else | 207 | #else |
210 | static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev) | 208 | static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev) |
211 | { | 209 | { |
@@ -222,14 +220,6 @@ static inline void rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev) | |||
222 | static inline void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev) | 220 | static inline void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev) |
223 | { | 221 | { |
224 | } | 222 | } |
225 | |||
226 | static inline void rt2x00rfkill_suspend(struct rt2x00_dev *rt2x00dev) | ||
227 | { | ||
228 | } | ||
229 | |||
230 | static inline void rt2x00rfkill_resume(struct rt2x00_dev *rt2x00dev) | ||
231 | { | ||
232 | } | ||
233 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | 223 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ |
234 | 224 | ||
235 | /* | 225 | /* |