aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00lib.h33
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
190void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi);
191int rt2x00leds_register(struct rt2x00_dev *rt2x00dev);
192void rt2x00leds_unregister(struct rt2x00_dev *rt2x00dev);
193void rt2x00leds_suspend(struct rt2x00_dev *rt2x00dev);
194void rt2x00leds_resume(struct rt2x00_dev *rt2x00dev);
195#else
196static inline void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev,
197 int rssi)
198{
199}
200
201static inline int rt2x00leds_register(struct rt2x00_dev *rt2x00dev)
202{
203 return 0;
204}
205
206static inline void rt2x00leds_unregister(struct rt2x00_dev *rt2x00dev)
207{
208}
209
210static inline void rt2x00leds_suspend(struct rt2x00_dev *rt2x00dev)
211{
212}
213
214static 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 */