diff options
author | Danny Kukawka <dkukawka@suse.de> | 2009-01-31 09:52:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:47 -0500 |
commit | 0818cb8adfedf3e5b48662056f0228576c666d9d (patch) | |
tree | d492555a3ad7098bc31646b12c1cd0d5816382b2 /drivers/net/wireless/ath9k/main.c | |
parent | a387cc7d380504bf64743789f47de35605e05596 (diff) |
ath9k: fix led naming
Fixed led device naming for the ath9k 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. "ath9k-%s::rx" instead of "ath9k-%s:rx".
Signed-off-by: Danny Kukawka <dkukawka@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index e98f2d79af68..1c0f893e1c0a 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1050,7 +1050,7 @@ static void ath_init_leds(struct ath_softc *sc) | |||
1050 | 1050 | ||
1051 | trigger = ieee80211_get_radio_led_name(sc->hw); | 1051 | trigger = ieee80211_get_radio_led_name(sc->hw); |
1052 | snprintf(sc->radio_led.name, sizeof(sc->radio_led.name), | 1052 | snprintf(sc->radio_led.name, sizeof(sc->radio_led.name), |
1053 | "ath9k-%s:radio", wiphy_name(sc->hw->wiphy)); | 1053 | "ath9k-%s::radio", wiphy_name(sc->hw->wiphy)); |
1054 | ret = ath_register_led(sc, &sc->radio_led, trigger); | 1054 | ret = ath_register_led(sc, &sc->radio_led, trigger); |
1055 | sc->radio_led.led_type = ATH_LED_RADIO; | 1055 | sc->radio_led.led_type = ATH_LED_RADIO; |
1056 | if (ret) | 1056 | if (ret) |
@@ -1058,7 +1058,7 @@ static void ath_init_leds(struct ath_softc *sc) | |||
1058 | 1058 | ||
1059 | trigger = ieee80211_get_assoc_led_name(sc->hw); | 1059 | trigger = ieee80211_get_assoc_led_name(sc->hw); |
1060 | snprintf(sc->assoc_led.name, sizeof(sc->assoc_led.name), | 1060 | snprintf(sc->assoc_led.name, sizeof(sc->assoc_led.name), |
1061 | "ath9k-%s:assoc", wiphy_name(sc->hw->wiphy)); | 1061 | "ath9k-%s::assoc", wiphy_name(sc->hw->wiphy)); |
1062 | ret = ath_register_led(sc, &sc->assoc_led, trigger); | 1062 | ret = ath_register_led(sc, &sc->assoc_led, trigger); |
1063 | sc->assoc_led.led_type = ATH_LED_ASSOC; | 1063 | sc->assoc_led.led_type = ATH_LED_ASSOC; |
1064 | if (ret) | 1064 | if (ret) |
@@ -1066,7 +1066,7 @@ static void ath_init_leds(struct ath_softc *sc) | |||
1066 | 1066 | ||
1067 | trigger = ieee80211_get_tx_led_name(sc->hw); | 1067 | trigger = ieee80211_get_tx_led_name(sc->hw); |
1068 | snprintf(sc->tx_led.name, sizeof(sc->tx_led.name), | 1068 | snprintf(sc->tx_led.name, sizeof(sc->tx_led.name), |
1069 | "ath9k-%s:tx", wiphy_name(sc->hw->wiphy)); | 1069 | "ath9k-%s::tx", wiphy_name(sc->hw->wiphy)); |
1070 | ret = ath_register_led(sc, &sc->tx_led, trigger); | 1070 | ret = ath_register_led(sc, &sc->tx_led, trigger); |
1071 | sc->tx_led.led_type = ATH_LED_TX; | 1071 | sc->tx_led.led_type = ATH_LED_TX; |
1072 | if (ret) | 1072 | if (ret) |
@@ -1074,7 +1074,7 @@ static void ath_init_leds(struct ath_softc *sc) | |||
1074 | 1074 | ||
1075 | trigger = ieee80211_get_rx_led_name(sc->hw); | 1075 | trigger = ieee80211_get_rx_led_name(sc->hw); |
1076 | snprintf(sc->rx_led.name, sizeof(sc->rx_led.name), | 1076 | snprintf(sc->rx_led.name, sizeof(sc->rx_led.name), |
1077 | "ath9k-%s:rx", wiphy_name(sc->hw->wiphy)); | 1077 | "ath9k-%s::rx", wiphy_name(sc->hw->wiphy)); |
1078 | ret = ath_register_led(sc, &sc->rx_led, trigger); | 1078 | ret = ath_register_led(sc, &sc->rx_led, trigger); |
1079 | sc->rx_led.led_type = ATH_LED_RX; | 1079 | sc->rx_led.led_type = ATH_LED_RX; |
1080 | if (ret) | 1080 | if (ret) |
@@ -1257,7 +1257,7 @@ static int ath_init_sw_rfkill(struct ath_softc *sc) | |||
1257 | } | 1257 | } |
1258 | 1258 | ||
1259 | snprintf(sc->rf_kill.rfkill_name, sizeof(sc->rf_kill.rfkill_name), | 1259 | snprintf(sc->rf_kill.rfkill_name, sizeof(sc->rf_kill.rfkill_name), |
1260 | "ath9k-%s:rfkill", wiphy_name(sc->hw->wiphy)); | 1260 | "ath9k-%s::rfkill", wiphy_name(sc->hw->wiphy)); |
1261 | sc->rf_kill.rfkill->name = sc->rf_kill.rfkill_name; | 1261 | sc->rf_kill.rfkill->name = sc->rf_kill.rfkill_name; |
1262 | sc->rf_kill.rfkill->data = sc; | 1262 | sc->rf_kill.rfkill->data = sc; |
1263 | sc->rf_kill.rfkill->toggle_radio = ath_sw_toggle_radio; | 1263 | sc->rf_kill.rfkill->toggle_radio = ath_sw_toggle_radio; |