diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-02-03 09:53:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:00 -0500 |
commit | a9450b70a755abf093600035ef5361c53343fe9a (patch) | |
tree | 94b509ea1e73454d327f805273a1fce994d95b1b /drivers/net/wireless/rt2x00/rt2x00lib.h | |
parent | f2a3c7f5c8e3c1356dbbce1e9ac2e7f4d5365ba9 (diff) |
rt2x00: Make use of MAC80211_LED_TRIGGERS
Make use of the led triggers provided by mac80211 to control
the led status. This can be enabled through a per-driver
configuration option which will automatically enable the
generic handler in rt2x00lib.
This has been enabled for rt2500usb and rt73usb for the moment
since the led class will call set_brightness in irq context which
will not work correctly with the usb drivers who need to sleep.
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 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index ca9630c75520..2a611e4366b5 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -183,4 +183,37 @@ static inline void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev) | |||
183 | } | 183 | } |
184 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | 184 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ |
185 | 185 | ||
186 | /* | ||
187 | * LED handlers | ||
188 | */ | ||
189 | #ifdef CONFIG_RT2X00_LIB_LEDS | ||
190 | void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi); | ||
191 | int rt2x00leds_register(struct rt2x00_dev *rt2x00dev); | ||
192 | void rt2x00leds_unregister(struct rt2x00_dev *rt2x00dev); | ||
193 | void rt2x00leds_suspend(struct rt2x00_dev *rt2x00dev); | ||
194 | void rt2x00leds_resume(struct rt2x00_dev *rt2x00dev); | ||
195 | #else | ||
196 | static inline void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, | ||
197 | int rssi) | ||
198 | { | ||
199 | } | ||
200 | |||
201 | static inline int rt2x00leds_register(struct rt2x00_dev *rt2x00dev) | ||
202 | { | ||
203 | return 0; | ||
204 | } | ||
205 | |||
206 | static inline void rt2x00leds_unregister(struct rt2x00_dev *rt2x00dev) | ||
207 | { | ||
208 | } | ||
209 | |||
210 | static inline void rt2x00leds_suspend(struct rt2x00_dev *rt2x00dev) | ||
211 | { | ||
212 | } | ||
213 | |||
214 | static inline void rt2x00leds_resume(struct rt2x00_dev *rt2x00dev) | ||
215 | { | ||
216 | } | ||
217 | #endif /* CONFIG_RT2X00_LIB_LEDS */ | ||
218 | |||
186 | #endif /* RT2X00LIB_H */ | 219 | #endif /* RT2X00LIB_H */ |