diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-27 14:02:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-22 14:33:37 -0500 |
commit | fe67c913f1ec2a01aaa9176c80ef36eaf87d705d (patch) | |
tree | 4ac91b417d1693ac9b49cf46872bd90c4dceae2b /net/mac80211/led.h | |
parent | 63e35cd9bd4c8ae085c8b9a70554595b529c4100 (diff) |
mac80211: make LED trigger names available early
The throughput trigger will require doing LED
classdev/trigger handling before register_hw(),
so drivers should have access to the trigger
names before it. If trigger registration fails,
this will still make the trigger name available,
but that's not a big problem since the default
trigger will the simply not be found.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/led.h')
-rw-r--r-- | net/mac80211/led.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/led.h b/net/mac80211/led.h index 77b1e1ba6039..8320cbac61c6 100644 --- a/net/mac80211/led.h +++ b/net/mac80211/led.h | |||
@@ -18,6 +18,7 @@ extern void ieee80211_led_assoc(struct ieee80211_local *local, | |||
18 | bool associated); | 18 | bool associated); |
19 | extern void ieee80211_led_radio(struct ieee80211_local *local, | 19 | extern void ieee80211_led_radio(struct ieee80211_local *local, |
20 | bool enabled); | 20 | bool enabled); |
21 | extern void ieee80211_led_names(struct ieee80211_local *local); | ||
21 | extern void ieee80211_led_init(struct ieee80211_local *local); | 22 | extern void ieee80211_led_init(struct ieee80211_local *local); |
22 | extern void ieee80211_led_exit(struct ieee80211_local *local); | 23 | extern void ieee80211_led_exit(struct ieee80211_local *local); |
23 | #else | 24 | #else |
@@ -35,6 +36,9 @@ static inline void ieee80211_led_radio(struct ieee80211_local *local, | |||
35 | bool enabled) | 36 | bool enabled) |
36 | { | 37 | { |
37 | } | 38 | } |
39 | static inline void ieee80211_led_names(struct ieee80211_local *local) | ||
40 | { | ||
41 | } | ||
38 | static inline void ieee80211_led_init(struct ieee80211_local *local) | 42 | static inline void ieee80211_led_init(struct ieee80211_local *local) |
39 | { | 43 | { |
40 | } | 44 | } |