diff options
author | Németh Márton <nm127@freemail.hu> | 2008-03-09 16:59:57 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-04-24 18:37:42 -0400 |
commit | 4d404fd5c51772720e9c72aa3185bd5119bc6e69 (patch) | |
tree | 31fc8b3a99ca54a060a61e94a3f8acc05494fcfd /drivers/leds/leds-corgi.c | |
parent | 0013b23d66a2768f5babbb0ea9f03ab067a990d8 (diff) |
leds: Cleanup various whitespace and code style issues
Break the lines which were more than 80 characters into more
lines; replace SPACEs with TABs; correct ident at switch-case;
change character encoding from ISO-8859-2 to UTF-8.
The order of the functions in led-triggers.c changed in order
the similar functions can still be together under titles
"Used by LED Class", "LED Trigger Interface" and "Simple
LED Tigger Interface" as was grouped before when exported
with EXPORT_SYMBOL.
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/leds/leds-corgi.c')
-rw-r--r-- | drivers/leds/leds-corgi.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/leds/leds-corgi.c b/drivers/leds/leds-corgi.c index 29e931f89f9c..a709704b9f93 100644 --- a/drivers/leds/leds-corgi.c +++ b/drivers/leds/leds-corgi.c | |||
@@ -21,7 +21,8 @@ | |||
21 | #include <asm/arch/pxa-regs.h> | 21 | #include <asm/arch/pxa-regs.h> |
22 | #include <asm/hardware/scoop.h> | 22 | #include <asm/hardware/scoop.h> |
23 | 23 | ||
24 | static void corgiled_amber_set(struct led_classdev *led_cdev, enum led_brightness value) | 24 | static void corgiled_amber_set(struct led_classdev *led_cdev, |
25 | enum led_brightness value) | ||
25 | { | 26 | { |
26 | if (value) | 27 | if (value) |
27 | GPSR0 = GPIO_bit(CORGI_GPIO_LED_ORANGE); | 28 | GPSR0 = GPIO_bit(CORGI_GPIO_LED_ORANGE); |
@@ -29,7 +30,8 @@ static void corgiled_amber_set(struct led_classdev *led_cdev, enum led_brightnes | |||
29 | GPCR0 = GPIO_bit(CORGI_GPIO_LED_ORANGE); | 30 | GPCR0 = GPIO_bit(CORGI_GPIO_LED_ORANGE); |
30 | } | 31 | } |
31 | 32 | ||
32 | static void corgiled_green_set(struct led_classdev *led_cdev, enum led_brightness value) | 33 | static void corgiled_green_set(struct led_classdev *led_cdev, |
34 | enum led_brightness value) | ||
33 | { | 35 | { |
34 | if (value) | 36 | if (value) |
35 | set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); | 37 | set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_LED_GREEN); |
@@ -53,7 +55,8 @@ static struct led_classdev corgi_green_led = { | |||
53 | static int corgiled_suspend(struct platform_device *dev, pm_message_t state) | 55 | static int corgiled_suspend(struct platform_device *dev, pm_message_t state) |
54 | { | 56 | { |
55 | #ifdef CONFIG_LEDS_TRIGGERS | 57 | #ifdef CONFIG_LEDS_TRIGGERS |
56 | if (corgi_amber_led.trigger && strcmp(corgi_amber_led.trigger->name, "sharpsl-charge")) | 58 | if (corgi_amber_led.trigger && |
59 | strcmp(corgi_amber_led.trigger->name, "sharpsl-charge")) | ||
57 | #endif | 60 | #endif |
58 | led_classdev_suspend(&corgi_amber_led); | 61 | led_classdev_suspend(&corgi_amber_led); |
59 | led_classdev_suspend(&corgi_green_led); | 62 | led_classdev_suspend(&corgi_green_led); |
@@ -110,7 +113,7 @@ static int __init corgiled_init(void) | |||
110 | 113 | ||
111 | static void __exit corgiled_exit(void) | 114 | static void __exit corgiled_exit(void) |
112 | { | 115 | { |
113 | platform_driver_unregister(&corgiled_driver); | 116 | platform_driver_unregister(&corgiled_driver); |
114 | } | 117 | } |
115 | 118 | ||
116 | module_init(corgiled_init); | 119 | module_init(corgiled_init); |