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 /arch/arm/mach-ixp4xx | |
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 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/dsmg600-setup.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/nas100d-setup.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/nslu2-setup.c | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c b/arch/arm/mach-ixp4xx/dsmg600-setup.c index 688659668bdf..8cb07437a807 100644 --- a/arch/arm/mach-ixp4xx/dsmg600-setup.c +++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c | |||
@@ -71,11 +71,11 @@ static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = { | |||
71 | 71 | ||
72 | static struct gpio_led dsmg600_led_pins[] = { | 72 | static struct gpio_led dsmg600_led_pins[] = { |
73 | { | 73 | { |
74 | .name = "power", | 74 | .name = "dsmg600:green:power", |
75 | .gpio = DSMG600_LED_PWR_GPIO, | 75 | .gpio = DSMG600_LED_PWR_GPIO, |
76 | }, | 76 | }, |
77 | { | 77 | { |
78 | .name = "wlan", | 78 | .name = "dsmg600:green:wlan", |
79 | .gpio = DSMG600_LED_WLAN_GPIO, | 79 | .gpio = DSMG600_LED_WLAN_GPIO, |
80 | .active_low = true, | 80 | .active_low = true, |
81 | }, | 81 | }, |
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index 4cecae84837b..159e1c4f1eda 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
@@ -60,17 +60,17 @@ static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { | |||
60 | 60 | ||
61 | static struct gpio_led nas100d_led_pins[] = { | 61 | static struct gpio_led nas100d_led_pins[] = { |
62 | { | 62 | { |
63 | .name = "wlan", /* green led */ | 63 | .name = "nas100d:green:wlan", |
64 | .gpio = NAS100D_LED_WLAN_GPIO, | 64 | .gpio = NAS100D_LED_WLAN_GPIO, |
65 | .active_low = true, | 65 | .active_low = true, |
66 | }, | 66 | }, |
67 | { | 67 | { |
68 | .name = "power", /* blue power led (off=flashing) */ | 68 | .name = "nas100d:blue:power", /* (off=flashing) */ |
69 | .gpio = NAS100D_LED_PWR_GPIO, | 69 | .gpio = NAS100D_LED_PWR_GPIO, |
70 | .active_low = true, | 70 | .active_low = true, |
71 | }, | 71 | }, |
72 | { | 72 | { |
73 | .name = "disk", /* yellow led */ | 73 | .name = "nas100d:yellow:disk", |
74 | .gpio = NAS100D_LED_DISK_GPIO, | 74 | .gpio = NAS100D_LED_DISK_GPIO, |
75 | .active_low = true, | 75 | .active_low = true, |
76 | }, | 76 | }, |
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index acaebcbce53a..d9a182895a0f 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c | |||
@@ -63,20 +63,20 @@ static struct i2c_board_info __initdata nslu2_i2c_board_info [] = { | |||
63 | 63 | ||
64 | static struct gpio_led nslu2_led_pins[] = { | 64 | static struct gpio_led nslu2_led_pins[] = { |
65 | { | 65 | { |
66 | .name = "ready", /* green led */ | 66 | .name = "nslu2:green:ready", |
67 | .gpio = NSLU2_LED_GRN_GPIO, | 67 | .gpio = NSLU2_LED_GRN_GPIO, |
68 | }, | 68 | }, |
69 | { | 69 | { |
70 | .name = "status", /* red led */ | 70 | .name = "nslu2:red:status", |
71 | .gpio = NSLU2_LED_RED_GPIO, | 71 | .gpio = NSLU2_LED_RED_GPIO, |
72 | }, | 72 | }, |
73 | { | 73 | { |
74 | .name = "disk-1", | 74 | .name = "nslu2:green:disk-1", |
75 | .gpio = NSLU2_LED_DISK1_GPIO, | 75 | .gpio = NSLU2_LED_DISK1_GPIO, |
76 | .active_low = true, | 76 | .active_low = true, |
77 | }, | 77 | }, |
78 | { | 78 | { |
79 | .name = "disk-2", | 79 | .name = "nslu2:green:disk-2", |
80 | .gpio = NSLU2_LED_DISK2_GPIO, | 80 | .gpio = NSLU2_LED_DISK2_GPIO, |
81 | .active_low = true, | 81 | .active_low = true, |
82 | }, | 82 | }, |