提交 b157b5e6 编写于 作者: D Danny Kukawka 提交者: John W. Linville

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: NDanny Kukawka <dkukawka@suse.de>
Acked-by: NLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 0818cb8a
...@@ -146,12 +146,12 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, ...@@ -146,12 +146,12 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev,
case B43legacy_LED_TRANSFER: case B43legacy_LED_TRANSFER:
case B43legacy_LED_APTRANSFER: case B43legacy_LED_APTRANSFER:
snprintf(name, sizeof(name), snprintf(name, sizeof(name),
"b43legacy-%s:tx", wiphy_name(hw->wiphy)); "b43legacy-%s::tx", wiphy_name(hw->wiphy));
b43legacy_register_led(dev, &dev->led_tx, name, b43legacy_register_led(dev, &dev->led_tx, name,
ieee80211_get_tx_led_name(hw), ieee80211_get_tx_led_name(hw),
led_index, activelow); led_index, activelow);
snprintf(name, sizeof(name), snprintf(name, sizeof(name),
"b43legacy-%s:rx", wiphy_name(hw->wiphy)); "b43legacy-%s::rx", wiphy_name(hw->wiphy));
b43legacy_register_led(dev, &dev->led_rx, name, b43legacy_register_led(dev, &dev->led_rx, name,
ieee80211_get_rx_led_name(hw), ieee80211_get_rx_led_name(hw),
led_index, activelow); led_index, activelow);
...@@ -161,7 +161,7 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, ...@@ -161,7 +161,7 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev,
case B43legacy_LED_RADIO_B: case B43legacy_LED_RADIO_B:
case B43legacy_LED_MODE_BG: case B43legacy_LED_MODE_BG:
snprintf(name, sizeof(name), snprintf(name, sizeof(name),
"b43legacy-%s:radio", wiphy_name(hw->wiphy)); "b43legacy-%s::radio", wiphy_name(hw->wiphy));
b43legacy_register_led(dev, &dev->led_radio, name, b43legacy_register_led(dev, &dev->led_radio, name,
b43legacy_rfkill_led_name(dev), b43legacy_rfkill_led_name(dev),
led_index, activelow); led_index, activelow);
...@@ -172,7 +172,7 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev, ...@@ -172,7 +172,7 @@ static void b43legacy_map_led(struct b43legacy_wldev *dev,
case B43legacy_LED_WEIRD: case B43legacy_LED_WEIRD:
case B43legacy_LED_ASSOC: case B43legacy_LED_ASSOC:
snprintf(name, sizeof(name), snprintf(name, sizeof(name),
"b43legacy-%s:assoc", wiphy_name(hw->wiphy)); "b43legacy-%s::assoc", wiphy_name(hw->wiphy));
b43legacy_register_led(dev, &dev->led_assoc, name, b43legacy_register_led(dev, &dev->led_assoc, name,
ieee80211_get_assoc_led_name(hw), ieee80211_get_assoc_led_name(hw),
led_index, activelow); led_index, activelow);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册