diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-10-31 10:00:07 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-02-07 04:47:00 -0500 |
commit | 6c152beefbf90579d21afc4f7e075b1f801f9a75 (patch) | |
tree | c5814496de9e29662d558deddb31e0a0c4549cd7 /drivers/leds/leds-spitz.c | |
parent | cec035de8265b18252742ef359b12e9694641112 (diff) |
leds: Standardise LED naming scheme
As discussed on LKML some notion of 'function' is needed in
LED naming. This patch adds this to the documentation and
standardises existing LED drivers.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/leds/leds-spitz.c')
-rw-r--r-- | drivers/leds/leds-spitz.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/leds/leds-spitz.c b/drivers/leds/leds-spitz.c index 126d09cc96ec..93e1012b17e6 100644 --- a/drivers/leds/leds-spitz.c +++ b/drivers/leds/leds-spitz.c | |||
@@ -38,13 +38,13 @@ static void spitzled_green_set(struct led_classdev *led_cdev, enum led_brightnes | |||
38 | } | 38 | } |
39 | 39 | ||
40 | static struct led_classdev spitz_amber_led = { | 40 | static struct led_classdev spitz_amber_led = { |
41 | .name = "spitz:amber", | 41 | .name = "spitz:amber:charge", |
42 | .default_trigger = "sharpsl-charge", | 42 | .default_trigger = "sharpsl-charge", |
43 | .brightness_set = spitzled_amber_set, | 43 | .brightness_set = spitzled_amber_set, |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static struct led_classdev spitz_green_led = { | 46 | static struct led_classdev spitz_green_led = { |
47 | .name = "spitz:green", | 47 | .name = "spitz:green:hddactivity", |
48 | .default_trigger = "ide-disk", | 48 | .default_trigger = "ide-disk", |
49 | .brightness_set = spitzled_green_set, | 49 | .brightness_set = spitzled_green_set, |
50 | }; | 50 | }; |
@@ -72,8 +72,10 @@ static int spitzled_probe(struct platform_device *pdev) | |||
72 | { | 72 | { |
73 | int ret; | 73 | int ret; |
74 | 74 | ||
75 | if (machine_is_akita()) | 75 | if (machine_is_akita()) { |
76 | spitz_green_led.name = "spitz:green:mail"; | ||
76 | spitz_green_led.default_trigger = "nand-disk"; | 77 | spitz_green_led.default_trigger = "nand-disk"; |
78 | } | ||
77 | 79 | ||
78 | ret = led_classdev_register(&pdev->dev, &spitz_amber_led); | 80 | ret = led_classdev_register(&pdev->dev, &spitz_amber_led); |
79 | if (ret < 0) | 81 | if (ret < 0) |