diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-12-26 01:37:09 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2018-01-05 08:58:41 -0500 |
commit | 23bbeaef90ab7607d03428bbb708efe44f43c761 (patch) | |
tree | c98d68a97ce0f4b098e4e6cae716f7e68780932d | |
parent | d6693b59eb0c88e74a4f7d121924d79998752b8f (diff) |
ARM: davinci: constify gpio_led
gpio_led are not supposed to change at runtime.
struct gpio_led_platform_data working with const gpio_led
provided by <linux/leds.h>. So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r-- | arch/arm/mach-davinci/board-neuros-osd2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index 0c02aaad0539..4da210a1a110 100644 --- a/arch/arm/mach-davinci/board-neuros-osd2.c +++ b/arch/arm/mach-davinci/board-neuros-osd2.c | |||
@@ -128,7 +128,7 @@ static struct platform_device davinci_fb_device = { | |||
128 | .num_resources = 0, | 128 | .num_resources = 0, |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static struct gpio_led ntosd2_leds[] = { | 131 | static const struct gpio_led ntosd2_leds[] = { |
132 | { .name = "led1_green", .gpio = GPIO(10), }, | 132 | { .name = "led1_green", .gpio = GPIO(10), }, |
133 | { .name = "led1_red", .gpio = GPIO(11), }, | 133 | { .name = "led1_red", .gpio = GPIO(11), }, |
134 | { .name = "led2_green", .gpio = GPIO(12), }, | 134 | { .name = "led2_green", .gpio = GPIO(12), }, |