Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Danny Kukawka and committed by
John W. Linville
b157b5e6 0818cb8a

+4 -4
+4 -4
drivers/net/wireless/b43legacy/leds.c
··· 146 146 case B43legacy_LED_TRANSFER: 147 147 case B43legacy_LED_APTRANSFER: 148 148 snprintf(name, sizeof(name), 149 - "b43legacy-%s:tx", wiphy_name(hw->wiphy)); 149 + "b43legacy-%s::tx", wiphy_name(hw->wiphy)); 150 150 b43legacy_register_led(dev, &dev->led_tx, name, 151 151 ieee80211_get_tx_led_name(hw), 152 152 led_index, activelow); 153 153 snprintf(name, sizeof(name), 154 - "b43legacy-%s:rx", wiphy_name(hw->wiphy)); 154 + "b43legacy-%s::rx", wiphy_name(hw->wiphy)); 155 155 b43legacy_register_led(dev, &dev->led_rx, name, 156 156 ieee80211_get_rx_led_name(hw), 157 157 led_index, activelow); ··· 161 161 case B43legacy_LED_RADIO_B: 162 162 case B43legacy_LED_MODE_BG: 163 163 snprintf(name, sizeof(name), 164 - "b43legacy-%s:radio", wiphy_name(hw->wiphy)); 164 + "b43legacy-%s::radio", wiphy_name(hw->wiphy)); 165 165 b43legacy_register_led(dev, &dev->led_radio, name, 166 166 b43legacy_rfkill_led_name(dev), 167 167 led_index, activelow); ··· 172 172 case B43legacy_LED_WEIRD: 173 173 case B43legacy_LED_ASSOC: 174 174 snprintf(name, sizeof(name), 175 - "b43legacy-%s:assoc", wiphy_name(hw->wiphy)); 175 + "b43legacy-%s::assoc", wiphy_name(hw->wiphy)); 176 176 b43legacy_register_led(dev, &dev->led_assoc, name, 177 177 ieee80211_get_assoc_led_name(hw), 178 178 led_index, activelow);