Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Linus Torvalds
9517f925 b1e6b706

+3 -3
+1 -1
drivers/leds/leds-net5501.c
··· 19 19 20 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 24 .name = "error", 25 25 .gpio = 6,
+2 -2
include/linux/leds.h
··· 194 194 195 195 struct gpio_led_platform_data { 196 196 int num_leds; 197 - struct gpio_led *leds; 197 + const struct gpio_led *leds; 198 198 199 199 #define GPIO_LED_NO_BLINK_LOW 0 /* No blink GPIO state low */ 200 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 202 int (*gpio_blink_set)(unsigned gpio, int state, 203 203 unsigned long *delay_on, 204 204 unsigned long *delay_off);