diff options
author | Danny Kukawka <dkukawka@suse.de> | 2009-01-31 09:52:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:47 -0500 |
commit | b34196d7d031a966c70ce2ede9087be56c7dd4bc (patch) | |
tree | 3f6fecb719a454d93fb130ab358008214c93877f /drivers/net/wireless/rt2x00 | |
parent | b157b5e60b2e4eefa8fb13936e0d2642ccc1d02c (diff) |
rt2x00: fix led naming
Fixed led device naming for the rt2x00 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. "%s::radio" instead of "%s:radio".
Signed-off-by: Danny Kukawka <dkukawka@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00leds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00leds.c b/drivers/net/wireless/rt2x00/rt2x00leds.c index 9b531e0ca0cd..49671fed91d7 100644 --- a/drivers/net/wireless/rt2x00/rt2x00leds.c +++ b/drivers/net/wireless/rt2x00/rt2x00leds.c | |||
@@ -134,7 +134,7 @@ void rt2x00leds_register(struct rt2x00_dev *rt2x00dev) | |||
134 | rt2x00dev->ops->name, wiphy_name(rt2x00dev->hw->wiphy)); | 134 | rt2x00dev->ops->name, wiphy_name(rt2x00dev->hw->wiphy)); |
135 | 135 | ||
136 | if (rt2x00dev->led_radio.flags & LED_INITIALIZED) { | 136 | if (rt2x00dev->led_radio.flags & LED_INITIALIZED) { |
137 | snprintf(name, sizeof(name), "%s:radio", dev_name); | 137 | snprintf(name, sizeof(name), "%s::radio", dev_name); |
138 | 138 | ||
139 | retval = rt2x00leds_register_led(rt2x00dev, | 139 | retval = rt2x00leds_register_led(rt2x00dev, |
140 | &rt2x00dev->led_radio, | 140 | &rt2x00dev->led_radio, |
@@ -144,7 +144,7 @@ void rt2x00leds_register(struct rt2x00_dev *rt2x00dev) | |||
144 | } | 144 | } |
145 | 145 | ||
146 | if (rt2x00dev->led_assoc.flags & LED_INITIALIZED) { | 146 | if (rt2x00dev->led_assoc.flags & LED_INITIALIZED) { |
147 | snprintf(name, sizeof(name), "%s:assoc", dev_name); | 147 | snprintf(name, sizeof(name), "%s::assoc", dev_name); |
148 | 148 | ||
149 | retval = rt2x00leds_register_led(rt2x00dev, | 149 | retval = rt2x00leds_register_led(rt2x00dev, |
150 | &rt2x00dev->led_assoc, | 150 | &rt2x00dev->led_assoc, |
@@ -154,7 +154,7 @@ void rt2x00leds_register(struct rt2x00_dev *rt2x00dev) | |||
154 | } | 154 | } |
155 | 155 | ||
156 | if (rt2x00dev->led_qual.flags & LED_INITIALIZED) { | 156 | if (rt2x00dev->led_qual.flags & LED_INITIALIZED) { |
157 | snprintf(name, sizeof(name), "%s:quality", dev_name); | 157 | snprintf(name, sizeof(name), "%s::quality", dev_name); |
158 | 158 | ||
159 | retval = rt2x00leds_register_led(rt2x00dev, | 159 | retval = rt2x00leds_register_led(rt2x00dev, |
160 | &rt2x00dev->led_qual, | 160 | &rt2x00dev->led_qual, |