]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: davinci: constify gpio_led
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 26 Dec 2017 06:37:09 +0000 (12:07 +0530)
committerSekhar Nori <nsekhar@ti.com>
Fri, 5 Jan 2018 13:58:41 +0000 (19:28 +0530)
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>
arch/arm/mach-davinci/board-neuros-osd2.c

index 0c02aaad0539b025fbf81135e7977c92cfaa9b45..4da210a1a1106d6f26813d4ce30812f5aaacabe0 100644 (file)
@@ -128,7 +128,7 @@ static struct platform_device davinci_fb_device = {
        .num_resources = 0,
 };
 
-static struct gpio_led ntosd2_leds[] = {
+static const struct gpio_led ntosd2_leds[] = {
        { .name = "led1_green", .gpio = GPIO(10), },
        { .name = "led1_red",   .gpio = GPIO(11), },
        { .name = "led2_green", .gpio = GPIO(12), },