]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.fixes/rt2x00-fix-led_device_naming.diff
Add a patch to fix Intel E100 wake-on-lan problems.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / rt2x00-fix-led_device_naming.diff
CommitLineData
6a930a95
BS
1From: Danny Kukawka <dkukawka@suse.de>
2Subject: rt2x00: fix led naming
3
4Fixed led device naming for the rt2x00 driver. Due to the
5documentation of the led subsystem/class the naming should be
6"devicename:colour:function" while not applying sections
7should be left blank.
8
9This should lead to e.g. "%s::radio" instead of "%s:radio".
10
11Signed-off-by: Danny Kukawka <dkukawka@suse.de>
12--
13 drivers/net/wireless/rt2x00/rt2x00leds.c | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16--- a/drivers/net/wireless/rt2x00/rt2x00leds.c
17+++ b/drivers/net/wireless/rt2x00/rt2x00leds.c
18@@ -149,7 +149,7 @@ void rt2x00leds_register(struct rt2x00_d
19 rt2x00dev->ops->name, wiphy_name(rt2x00dev->hw->wiphy));
20
21 if (rt2x00dev->led_radio.flags & LED_INITIALIZED) {
22- snprintf(name, sizeof(name), "%s:radio", dev_name);
23+ snprintf(name, sizeof(name), "%s::radio", dev_name);
24
25 retval = rt2x00leds_register_led(rt2x00dev,
26 &rt2x00dev->led_radio,
27@@ -159,7 +159,7 @@ void rt2x00leds_register(struct rt2x00_d
28 }
29
30 if (rt2x00dev->led_assoc.flags & LED_INITIALIZED) {
31- snprintf(name, sizeof(name), "%s:assoc", dev_name);
32+ snprintf(name, sizeof(name), "%s::assoc", dev_name);
33
34 retval = rt2x00leds_register_led(rt2x00dev,
35 &rt2x00dev->led_assoc,
36@@ -169,7 +169,7 @@ void rt2x00leds_register(struct rt2x00_d
37 }
38
39 if (rt2x00dev->led_qual.flags & LED_INITIALIZED) {
40- snprintf(name, sizeof(name), "%s:quality", dev_name);
41+ snprintf(name, sizeof(name), "%s::quality", dev_name);
42
43 retval = rt2x00leds_register_led(rt2x00dev,
44 &rt2x00dev->led_qual,