diff options
Diffstat (limited to 'drivers/leds/leds-spitz.c')
-rw-r--r-- | drivers/leds/leds-spitz.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/leds/leds-spitz.c b/drivers/leds/leds-spitz.c index 87007cc362c1..e75e8543bc5a 100644 --- a/drivers/leds/leds-spitz.c +++ b/drivers/leds/leds-spitz.c | |||
@@ -21,7 +21,8 @@ | |||
21 | #include <asm/arch/pxa-regs.h> | 21 | #include <asm/arch/pxa-regs.h> |
22 | #include <asm/arch/spitz.h> | 22 | #include <asm/arch/spitz.h> |
23 | 23 | ||
24 | static void spitzled_amber_set(struct led_classdev *led_cdev, enum led_brightness value) | 24 | static void spitzled_amber_set(struct led_classdev *led_cdev, |
25 | enum led_brightness value) | ||
25 | { | 26 | { |
26 | if (value) | 27 | if (value) |
27 | set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_ORANGE); | 28 | set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_ORANGE); |
@@ -29,7 +30,8 @@ static void spitzled_amber_set(struct led_classdev *led_cdev, enum led_brightnes | |||
29 | reset_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_ORANGE); | 30 | reset_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_ORANGE); |
30 | } | 31 | } |
31 | 32 | ||
32 | static void spitzled_green_set(struct led_classdev *led_cdev, enum led_brightness value) | 33 | static void spitzled_green_set(struct led_classdev *led_cdev, |
34 | enum led_brightness value) | ||
33 | { | 35 | { |
34 | if (value) | 36 | if (value) |
35 | set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_GREEN); | 37 | set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_GREEN); |
@@ -53,7 +55,8 @@ static struct led_classdev spitz_green_led = { | |||
53 | static int spitzled_suspend(struct platform_device *dev, pm_message_t state) | 55 | static int spitzled_suspend(struct platform_device *dev, pm_message_t state) |
54 | { | 56 | { |
55 | #ifdef CONFIG_LEDS_TRIGGERS | 57 | #ifdef CONFIG_LEDS_TRIGGERS |
56 | if (spitz_amber_led.trigger && strcmp(spitz_amber_led.trigger->name, "sharpsl-charge")) | 58 | if (spitz_amber_led.trigger && |
59 | strcmp(spitz_amber_led.trigger->name, "sharpsl-charge")) | ||
57 | #endif | 60 | #endif |
58 | led_classdev_suspend(&spitz_amber_led); | 61 | led_classdev_suspend(&spitz_amber_led); |
59 | led_classdev_suspend(&spitz_green_led); | 62 | led_classdev_suspend(&spitz_green_led); |
@@ -116,7 +119,7 @@ static int __init spitzled_init(void) | |||
116 | 119 | ||
117 | static void __exit spitzled_exit(void) | 120 | static void __exit spitzled_exit(void) |
118 | { | 121 | { |
119 | platform_driver_unregister(&spitzled_driver); | 122 | platform_driver_unregister(&spitzled_driver); |
120 | } | 123 | } |
121 | 124 | ||
122 | module_init(spitzled_init); | 125 | module_init(spitzled_init); |