]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.suse/led_classdev.sysfs-name.patch
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.suse / led_classdev.sysfs-name.patch
1 Subject: use correct name for /sys/devices/virtual/leds/ entries
2 From: olh@suse.de
3 References: 468350
4
5 the low hanging fruits
6
7 ---
8 drivers/leds/leds-cobalt-qube.c | 2 +-
9 drivers/leds/leds-cobalt-raq.c | 4 ++--
10 drivers/leds/ledtrig-default-on.c | 2 +-
11 drivers/macintosh/via-pmu-led.c | 2 +-
12 4 files changed, 5 insertions(+), 5 deletions(-)
13
14 --- a/drivers/leds/leds-cobalt-qube.c
15 +++ b/drivers/leds/leds-cobalt-qube.c
16 @@ -28,7 +28,7 @@ static void qube_front_led_set(struct le
17 }
18
19 static struct led_classdev qube_front_led = {
20 - .name = "qube-front",
21 + .name = "qube::front",
22 .brightness = LED_FULL,
23 .brightness_set = qube_front_led_set,
24 .default_trigger = "ide-disk",
25 --- a/drivers/leds/leds-cobalt-raq.c
26 +++ b/drivers/leds/leds-cobalt-raq.c
27 @@ -49,7 +49,7 @@ static void raq_web_led_set(struct led_c
28 }
29
30 static struct led_classdev raq_web_led = {
31 - .name = "raq-web",
32 + .name = "raq::web",
33 .brightness_set = raq_web_led_set,
34 };
35
36 @@ -70,7 +70,7 @@ static void raq_power_off_led_set(struct
37 }
38
39 static struct led_classdev raq_power_off_led = {
40 - .name = "raq-power-off",
41 + .name = "raq::power-off",
42 .brightness_set = raq_power_off_led_set,
43 .default_trigger = "power-off",
44 };
45 --- a/drivers/macintosh/via-pmu-led.c
46 +++ b/drivers/macintosh/via-pmu-led.c
47 @@ -72,7 +72,7 @@ static void pmu_led_set(struct led_class
48 }
49
50 static struct led_classdev pmu_led = {
51 - .name = "pmu-front-led",
52 + .name = "pmu-led::front",
53 #ifdef CONFIG_ADB_PMU_LED_IDE
54 .default_trigger = "ide-disk",
55 #endif