leds: make *struct gpio_led_platform_data.leds const
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 22 Mar 2011 23:30:17 +0000 (16:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:43:59 +0000 (17:43 -0700)
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>
drivers/leds/leds-net5501.c
include/linux/leds.h

index 1739557a903881a246c14d5047cca5a454081894..7e764b8365e60c58e7357da121ae0abbacee1029 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <asm/geode.h>
 
-static struct gpio_led net5501_leds[] = {
+static const struct gpio_led net5501_leds[] = {
        {
                .name = "error",
                .gpio = 6,
index 0f19df9e37b0fec0394d0350abf86a3aa63cc518..383811d9af83fdfd45210e83c326cf1abd25b026 100644 (file)
@@ -194,11 +194,11 @@ struct gpio_led {
 
 struct gpio_led_platform_data {
        int             num_leds;
-       struct gpio_led *leds;
+       const struct gpio_led *leds;
 
 #define GPIO_LED_NO_BLINK_LOW  0       /* No blink GPIO state low */
 #define GPIO_LED_NO_BLINK_HIGH 1       /* No blink GPIO state high */
-#define GPIO_LED_BLINK         2       /* Plase, blink */
+#define GPIO_LED_BLINK         2       /* Please, blink */
        int             (*gpio_blink_set)(unsigned gpio, int state,
                                        unsigned long *delay_on,
                                        unsigned long *delay_off);