From: Arvind Yadav Date: Tue, 26 Dec 2017 06:37:09 +0000 (+0530) Subject: ARM: davinci: constify gpio_led X-Git-Tag: v5.15~9498^2~8^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23bbeaef90ab7607d03428bbb708efe44f43c761;p=platform%2Fkernel%2Flinux-starfive.git 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 . So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Sekhar Nori --- diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index 0c02aaa..4da210a 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 = { .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), },