diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-03-22 19:30:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 20:43:59 -0400 |
commit | 9517f925f2eb9ffca78b3f0f9389fc675bcb572c (patch) | |
tree | e2750ab7bdc19cba2f17ce2d479e4abd6468cd61 | |
parent | b1e6b7068f026e88257c20522555c78122e5a14d (diff) |
leds: make *struct gpio_led_platform_data.leds const
And fix a typo.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/leds/leds-net5501.c | 2 | ||||
-rw-r--r-- | include/linux/leds.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/leds/leds-net5501.c b/drivers/leds/leds-net5501.c index 1739557a9038..7e764b8365e6 100644 --- a/drivers/leds/leds-net5501.c +++ b/drivers/leds/leds-net5501.c | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #include <asm/geode.h> | 20 | #include <asm/geode.h> |
21 | 21 | ||
22 | static struct gpio_led net5501_leds[] = { | 22 | static const struct gpio_led net5501_leds[] = { |
23 | { | 23 | { |
24 | .name = "error", | 24 | .name = "error", |
25 | .gpio = 6, | 25 | .gpio = 6, |
diff --git a/include/linux/leds.h b/include/linux/leds.h index 0f19df9e37b0..383811d9af83 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h | |||
@@ -194,11 +194,11 @@ struct gpio_led { | |||
194 | 194 | ||
195 | struct gpio_led_platform_data { | 195 | struct gpio_led_platform_data { |
196 | int num_leds; | 196 | int num_leds; |
197 | struct gpio_led *leds; | 197 | const struct gpio_led *leds; |
198 | 198 | ||
199 | #define GPIO_LED_NO_BLINK_LOW 0 /* No blink GPIO state low */ | 199 | #define GPIO_LED_NO_BLINK_LOW 0 /* No blink GPIO state low */ |
200 | #define GPIO_LED_NO_BLINK_HIGH 1 /* No blink GPIO state high */ | 200 | #define GPIO_LED_NO_BLINK_HIGH 1 /* No blink GPIO state high */ |
201 | #define GPIO_LED_BLINK 2 /* Plase, blink */ | 201 | #define GPIO_LED_BLINK 2 /* Please, blink */ |
202 | int (*gpio_blink_set)(unsigned gpio, int state, | 202 | int (*gpio_blink_set)(unsigned gpio, int state, |
203 | unsigned long *delay_on, | 203 | unsigned long *delay_on, |
204 | unsigned long *delay_off); | 204 | unsigned long *delay_off); |