Commit c241a0e0 authored by Laurent Pinchart's avatar Laurent Pinchart

arm: mach-shmobile: Constify sh_mobile_meram_cfg structures

The structures, passed to the sh_mobile_lcdcfb driver through platform
data, are read only by the driver. Make them const.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent b5ef967d
...@@ -579,7 +579,8 @@ static const struct fb_videomode ap4evb_lcdc_modes[] = { ...@@ -579,7 +579,8 @@ static const struct fb_videomode ap4evb_lcdc_modes[] = {
#endif #endif
}, },
}; };
static struct sh_mobile_meram_cfg lcd_meram_cfg = {
static const struct sh_mobile_meram_cfg lcd_meram_cfg = {
.icb[0] = { .icb[0] = {
.meram_size = 0x40, .meram_size = 0x40,
}, },
...@@ -856,7 +857,7 @@ static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq, ...@@ -856,7 +857,7 @@ static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq,
return error; return error;
} }
static struct sh_mobile_meram_cfg hdmi_meram_cfg = { static const struct sh_mobile_meram_cfg hdmi_meram_cfg = {
.icb[0] = { .icb[0] = {
.meram_size = 0x100, .meram_size = 0x100,
}, },
......
...@@ -369,7 +369,7 @@ static int mackerel_get_brightness(void) ...@@ -369,7 +369,7 @@ static int mackerel_get_brightness(void)
return gpio_get_value(GPIO_PORT31); return gpio_get_value(GPIO_PORT31);
} }
static struct sh_mobile_meram_cfg lcd_meram_cfg = { static const struct sh_mobile_meram_cfg lcd_meram_cfg = {
.icb[0] = { .icb[0] = {
.meram_size = 0x40, .meram_size = 0x40,
}, },
...@@ -455,7 +455,7 @@ static struct platform_device hdmi_device = { ...@@ -455,7 +455,7 @@ static struct platform_device hdmi_device = {
}, },
}; };
static struct sh_mobile_meram_cfg hdmi_meram_cfg = { static const struct sh_mobile_meram_cfg hdmi_meram_cfg = {
.icb[0] = { .icb[0] = {
.meram_size = 0x100, .meram_size = 0x100,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment