diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-11 17:30:45 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:41:13 -0400 |
commit | c241a0e0c27882ecab1df57a44d202db6e02012c (patch) | |
tree | a92eb038c484c28cfdc9300900180f602d69ce41 | |
parent | b5ef967df13d4d243a2954c32bdd9181a1ee7382 (diff) |
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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 714955e8b313..d4cc2dec5734 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -579,7 +579,8 @@ static const struct fb_videomode ap4evb_lcdc_modes[] = { | |||
579 | #endif | 579 | #endif |
580 | }, | 580 | }, |
581 | }; | 581 | }; |
582 | static struct sh_mobile_meram_cfg lcd_meram_cfg = { | 582 | |
583 | static const struct sh_mobile_meram_cfg lcd_meram_cfg = { | ||
583 | .icb[0] = { | 584 | .icb[0] = { |
584 | .meram_size = 0x40, | 585 | .meram_size = 0x40, |
585 | }, | 586 | }, |
@@ -856,7 +857,7 @@ static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq, | |||
856 | return error; | 857 | return error; |
857 | } | 858 | } |
858 | 859 | ||
859 | static struct sh_mobile_meram_cfg hdmi_meram_cfg = { | 860 | static const struct sh_mobile_meram_cfg hdmi_meram_cfg = { |
860 | .icb[0] = { | 861 | .icb[0] = { |
861 | .meram_size = 0x100, | 862 | .meram_size = 0x100, |
862 | }, | 863 | }, |
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index a6ad4a4bd6f7..e761b280a602 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -369,7 +369,7 @@ static int mackerel_get_brightness(void) | |||
369 | return gpio_get_value(GPIO_PORT31); | 369 | return gpio_get_value(GPIO_PORT31); |
370 | } | 370 | } |
371 | 371 | ||
372 | static struct sh_mobile_meram_cfg lcd_meram_cfg = { | 372 | static const struct sh_mobile_meram_cfg lcd_meram_cfg = { |
373 | .icb[0] = { | 373 | .icb[0] = { |
374 | .meram_size = 0x40, | 374 | .meram_size = 0x40, |
375 | }, | 375 | }, |
@@ -455,7 +455,7 @@ static struct platform_device hdmi_device = { | |||
455 | }, | 455 | }, |
456 | }; | 456 | }; |
457 | 457 | ||
458 | static struct sh_mobile_meram_cfg hdmi_meram_cfg = { | 458 | static const struct sh_mobile_meram_cfg hdmi_meram_cfg = { |
459 | .icb[0] = { | 459 | .icb[0] = { |
460 | .meram_size = 0x100, | 460 | .meram_size = 0x100, |
461 | }, | 461 | }, |