提交 9517f925 编写于 作者: U Uwe Kleine-König 提交者: Linus Torvalds

leds: make *struct gpio_led_platform_data.leds const

And fix a typo.
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b1e6b706
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/geode.h> #include <asm/geode.h>
static struct gpio_led net5501_leds[] = { static const struct gpio_led net5501_leds[] = {
{ {
.name = "error", .name = "error",
.gpio = 6, .gpio = 6,
......
...@@ -194,11 +194,11 @@ struct gpio_led { ...@@ -194,11 +194,11 @@ struct gpio_led {
struct gpio_led_platform_data { struct gpio_led_platform_data {
int num_leds; 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_LOW 0 /* No blink GPIO state low */
#define GPIO_LED_NO_BLINK_HIGH 1 /* No blink GPIO state high */ #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, int (*gpio_blink_set)(unsigned gpio, int state,
unsigned long *delay_on, unsigned long *delay_on,
unsigned long *delay_off); unsigned long *delay_off);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册