diff options
author | Danny Kukawka <dkukawka@suse.de> | 2009-01-31 09:52:16 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:47 -0500 |
commit | b157b5e60b2e4eefa8fb13936e0d2642ccc1d02c (patch) | |
tree | c25b54c09bb4840ab4d6c3b104df2e396aa5e2a6 /drivers/net/wireless | |
parent | 0818cb8adfedf3e5b48662056f0228576c666d9d (diff) |
b43legacy: fix led naming
Fixed led device naming for the b43legacy driver. Due to the
documentation of the led subsystem/class the naming should be
"devicename:colour:function" while not applying sections
should be left blank.
This should lead to e.g. "b43legacy-%s::rx" instead of
"b43legacy-%s:rx".
Signed-off-by: Danny Kukawka <dkukawka@suse.de>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43legacy/leds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43legacy/leds.c b/drivers/net/wireless/b43legacy/leds.c index cacb786d9713..3ea55b18c700 100644 --- a/drivers/net/wireless/b43legacy/leds.c +++ b/drivers/net/wireless/b43legacy/leds.c | |||
@@ -146,12 +146,12 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, | |||
146 | case B43legacy_LED_TRANSFER: | 146 | case B43legacy_LED_TRANSFER: |
147 | case B43legacy_LED_APTRANSFER: | 147 | case B43legacy_LED_APTRANSFER: |
148 | snprintf(name, sizeof(name), | 148 | snprintf(name, sizeof(name), |
149 | "b43legacy-%s:tx", wiphy_name(hw->wiphy)); | 149 | "b43legacy-%s::tx", wiphy_name(hw->wiphy)); |
150 | b43legacy_register_led(dev, &dev->led_tx, name, | 150 | b43legacy_register_led(dev, &dev->led_tx, name, |
151 | ieee80211_get_tx_led_name(hw), | 151 | ieee80211_get_tx_led_name(hw), |
152 | led_index, activelow); | 152 | led_index, activelow); |
153 | snprintf(name, sizeof(name), | 153 | snprintf(name, sizeof(name), |
154 | "b43legacy-%s:rx", wiphy_name(hw->wiphy)); | 154 | "b43legacy-%s::rx", wiphy_name(hw->wiphy)); |
155 | b43legacy_register_led(dev, &dev->led_rx, name, | 155 | b43legacy_register_led(dev, &dev->led_rx, name, |
156 | ieee80211_get_rx_led_name(hw), | 156 | ieee80211_get_rx_led_name(hw), |
157 | led_index, activelow); | 157 | led_index, activelow); |
@@ -161,7 +161,7 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, | |||
161 | case B43legacy_LED_RADIO_B: | 161 | case B43legacy_LED_RADIO_B: |
162 | case B43legacy_LED_MODE_BG: | 162 | case B43legacy_LED_MODE_BG: |
163 | snprintf(name, sizeof(name), | 163 | snprintf(name, sizeof(name), |
164 | "b43legacy-%s:radio", wiphy_name(hw->wiphy)); | 164 | "b43legacy-%s::radio", wiphy_name(hw->wiphy)); |
165 | b43legacy_register_led(dev, &dev->led_radio, name, | 165 | b43legacy_register_led(dev, &dev->led_radio, name, |
166 | b43legacy_rfkill_led_name(dev), | 166 | b43legacy_rfkill_led_name(dev), |
167 | led_index, activelow); | 167 | led_index, activelow); |
@@ -172,7 +172,7 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, | |||
172 | case B43legacy_LED_WEIRD: | 172 | case B43legacy_LED_WEIRD: |
173 | case B43legacy_LED_ASSOC: | 173 | case B43legacy_LED_ASSOC: |
174 | snprintf(name, sizeof(name), | 174 | snprintf(name, sizeof(name), |
175 | "b43legacy-%s:assoc", wiphy_name(hw->wiphy)); | 175 | "b43legacy-%s::assoc", wiphy_name(hw->wiphy)); |
176 | b43legacy_register_led(dev, &dev->led_assoc, name, | 176 | b43legacy_register_led(dev, &dev->led_assoc, name, |
177 | ieee80211_get_assoc_led_name(hw), | 177 | ieee80211_get_assoc_led_name(hw), |
178 | led_index, activelow); | 178 | led_index, activelow); |