diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-22 08:25:50 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-10-02 21:33:15 +0200 |
commit | d25c70cfebaea59a6c8c4966e9a75f5c750131bd (patch) | |
tree | 5b2d493c3df078aabab18ccec35d2546e783d054 /arch/arm/mach-omap1/board-palmz71.c | |
parent | Linux 4.14-rc1 (diff) | |
download | linux-d25c70cfebaea59a6c8c4966e9a75f5c750131bd.tar.xz linux-d25c70cfebaea59a6c8c4966e9a75f5c750131bd.zip |
ARM: omap1: add const and initconst to omap_lcd_config
Make these const as they are only passed to a const argument of the function
omapfb_set_lcd_config.
Also, replace __initdata with __initconst to avoid section conflict error.
Done using Coccinelle.
@match disable optional_qualifier@
identifier s;
@@
static struct omap_lcd_config s = {...};
@ref@
position p;
identifier match.s;
@@
s@p
@good1@
identifier match.s;
position ref.p;
@@
omapfb_set_lcd_config(&s@p,...)
@bad depends on !good1@
position ref.p;
identifier match.s;
@@
s@p
@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct omap_lcd_config s;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-palmz71.c')
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index aaf741b0aff6..30b07096197b 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c @@ -206,7 +206,7 @@ static struct omap_usb_config palmz71_usb_config __initdata = { .pins[0] = 2, }; -static struct omap_lcd_config palmz71_lcd_config __initdata = { +static const struct omap_lcd_config palmz71_lcd_config __initconst = { .ctrl_name = "internal", }; |