diff options
author | Danny Kukawka <dkukawka@suse.de> | 2009-01-29 15:58:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:43 -0500 |
commit | e5d24efe529b26d782b41a61a5e958c72f36f295 (patch) | |
tree | 75e657e1e357752027739beb35d35cdfd6a4b5e4 /drivers | |
parent | 9a23e5a2268fc03a55c7e7112ce904629276d0b2 (diff) |
iwlwifi: fix led naming
Fixed led device naming for the iwl 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. "iwl-phy0::RX" instead of "iwl-phy0:RX".
Signed-off-by: Danny Kukawka <dkukawka@suse.de>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index 63d669ec20c6..19680f72087f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c | |||
@@ -352,7 +352,7 @@ int iwl_leds_register(struct iwl_priv *priv) | |||
352 | 352 | ||
353 | trigger = ieee80211_get_radio_led_name(priv->hw); | 353 | trigger = ieee80211_get_radio_led_name(priv->hw); |
354 | snprintf(priv->led[IWL_LED_TRG_RADIO].name, | 354 | snprintf(priv->led[IWL_LED_TRG_RADIO].name, |
355 | sizeof(priv->led[IWL_LED_TRG_RADIO].name), "iwl-%s:radio", | 355 | sizeof(priv->led[IWL_LED_TRG_RADIO].name), "iwl-%s::radio", |
356 | wiphy_name(priv->hw->wiphy)); | 356 | wiphy_name(priv->hw->wiphy)); |
357 | 357 | ||
358 | priv->led[IWL_LED_TRG_RADIO].led_on = iwl4965_led_on_reg; | 358 | priv->led[IWL_LED_TRG_RADIO].led_on = iwl4965_led_on_reg; |
@@ -366,7 +366,7 @@ int iwl_leds_register(struct iwl_priv *priv) | |||
366 | 366 | ||
367 | trigger = ieee80211_get_assoc_led_name(priv->hw); | 367 | trigger = ieee80211_get_assoc_led_name(priv->hw); |
368 | snprintf(priv->led[IWL_LED_TRG_ASSOC].name, | 368 | snprintf(priv->led[IWL_LED_TRG_ASSOC].name, |
369 | sizeof(priv->led[IWL_LED_TRG_ASSOC].name), "iwl-%s:assoc", | 369 | sizeof(priv->led[IWL_LED_TRG_ASSOC].name), "iwl-%s::assoc", |
370 | wiphy_name(priv->hw->wiphy)); | 370 | wiphy_name(priv->hw->wiphy)); |
371 | 371 | ||
372 | ret = iwl_leds_register_led(priv, &priv->led[IWL_LED_TRG_ASSOC], | 372 | ret = iwl_leds_register_led(priv, &priv->led[IWL_LED_TRG_ASSOC], |
@@ -382,7 +382,7 @@ int iwl_leds_register(struct iwl_priv *priv) | |||
382 | 382 | ||
383 | trigger = ieee80211_get_rx_led_name(priv->hw); | 383 | trigger = ieee80211_get_rx_led_name(priv->hw); |
384 | snprintf(priv->led[IWL_LED_TRG_RX].name, | 384 | snprintf(priv->led[IWL_LED_TRG_RX].name, |
385 | sizeof(priv->led[IWL_LED_TRG_RX].name), "iwl-%s:RX", | 385 | sizeof(priv->led[IWL_LED_TRG_RX].name), "iwl-%s::RX", |
386 | wiphy_name(priv->hw->wiphy)); | 386 | wiphy_name(priv->hw->wiphy)); |
387 | 387 | ||
388 | ret = iwl_leds_register_led(priv, &priv->led[IWL_LED_TRG_RX], | 388 | ret = iwl_leds_register_led(priv, &priv->led[IWL_LED_TRG_RX], |
@@ -397,7 +397,7 @@ int iwl_leds_register(struct iwl_priv *priv) | |||
397 | 397 | ||
398 | trigger = ieee80211_get_tx_led_name(priv->hw); | 398 | trigger = ieee80211_get_tx_led_name(priv->hw); |
399 | snprintf(priv->led[IWL_LED_TRG_TX].name, | 399 | snprintf(priv->led[IWL_LED_TRG_TX].name, |
400 | sizeof(priv->led[IWL_LED_TRG_TX].name), "iwl-%s:TX", | 400 | sizeof(priv->led[IWL_LED_TRG_TX].name), "iwl-%s::TX", |
401 | wiphy_name(priv->hw->wiphy)); | 401 | wiphy_name(priv->hw->wiphy)); |
402 | 402 | ||
403 | ret = iwl_leds_register_led(priv, &priv->led[IWL_LED_TRG_TX], | 403 | ret = iwl_leds_register_led(priv, &priv->led[IWL_LED_TRG_TX], |