video: fbdev: annotate fb_fix_screeninfo with const and __initconst

Make these const as they are only used during a copy operation.
Some structures are used as a copy operation inside __init functions, so
make them const and replace __initdata with __initconst to avoid section
conflict error.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Bhumika Goyal and committed by
Bartlomiej Zolnierkiewicz
799b88de aa55457d

+9 -9
+1 -1
drivers/video/fbdev/68328fb.c
··· 72 72 .vmode = FB_VMODE_NONINTERLACED, 73 73 }; 74 74 75 - static struct fb_fix_screeninfo mc68x328fb_fix __initdata = { 75 + static const struct fb_fix_screeninfo mc68x328fb_fix __initconst = { 76 76 .id = "68328fb", 77 77 .type = FB_TYPE_PACKED_PIXELS, 78 78 .xpanstep = 1,
+1 -1
drivers/video/fbdev/atmel_lcdfb.c
··· 320 320 } 321 321 } 322 322 323 - static struct fb_fix_screeninfo atmel_lcdfb_fix __initdata = { 323 + static const struct fb_fix_screeninfo atmel_lcdfb_fix __initconst = { 324 324 .type = FB_TYPE_PACKED_PIXELS, 325 325 .visual = FB_VISUAL_TRUECOLOR, 326 326 .xpanstep = 0,
+1 -1
drivers/video/fbdev/dnfb.c
··· 126 126 .vmode = FB_VMODE_NONINTERLACED, 127 127 }; 128 128 129 - static struct fb_fix_screeninfo dnfb_fix = { 129 + static const struct fb_fix_screeninfo dnfb_fix = { 130 130 .id = "Apollo Mono", 131 131 .smem_start = (FRAME_BUFFER_START + IO_BASE), 132 132 .smem_len = FRAME_BUFFER_LEN,
+1 -1
drivers/video/fbdev/grvga.c
··· 70 70 } 71 71 }; 72 72 73 - static struct fb_fix_screeninfo grvga_fix = { 73 + static const struct fb_fix_screeninfo grvga_fix = { 74 74 .id = "AG SVGACTRL", 75 75 .type = FB_TYPE_PACKED_PIXELS, 76 76 .visual = FB_VISUAL_PSEUDOCOLOR,
+1 -1
drivers/video/fbdev/pmag-aa-fb.c
··· 90 90 .vmode = FB_VMODE_NONINTERLACED, 91 91 }; 92 92 93 - static struct fb_fix_screeninfo aafb_fix = { 93 + static const struct fb_fix_screeninfo aafb_fix = { 94 94 .id = "PMAG-AA", 95 95 .smem_len = (2048 * 1024), 96 96 .type = FB_TYPE_PACKED_PIXELS,
+1 -1
drivers/video/fbdev/pmag-ba-fb.c
··· 67 67 .vmode = FB_VMODE_NONINTERLACED, 68 68 }; 69 69 70 - static struct fb_fix_screeninfo pmagbafb_fix = { 70 + static const struct fb_fix_screeninfo pmagbafb_fix = { 71 71 .id = "PMAG-BA", 72 72 .smem_len = (1024 * 1024), 73 73 .type = FB_TYPE_PACKED_PIXELS,
+1 -1
drivers/video/fbdev/pmagb-b-fb.c
··· 57 57 .vmode = FB_VMODE_NONINTERLACED, 58 58 }; 59 59 60 - static struct fb_fix_screeninfo pmagbbfb_fix = { 60 + static const struct fb_fix_screeninfo pmagbbfb_fix = { 61 61 .id = "PMAGB-BA", 62 62 .smem_len = (2048 * 1024), 63 63 .type = FB_TYPE_PACKED_PIXELS,
+1 -1
drivers/video/fbdev/ps3fb.c
··· 952 952 .fb_compat_ioctl = ps3fb_ioctl 953 953 }; 954 954 955 - static struct fb_fix_screeninfo ps3fb_fix = { 955 + static const struct fb_fix_screeninfo ps3fb_fix = { 956 956 .id = DEVICE_NAME, 957 957 .type = FB_TYPE_PACKED_PIXELS, 958 958 .visual = FB_VISUAL_TRUECOLOR,
+1 -1
drivers/video/fbdev/skeletonfb.c
··· 84 84 * if we don't use modedb. If we do use modedb see xxxfb_init how to use it 85 85 * to get a fb_var_screeninfo. Otherwise define a default var as well. 86 86 */ 87 - static struct fb_fix_screeninfo xxxfb_fix = { 87 + static const struct fb_fix_screeninfo xxxfb_fix = { 88 88 .id = "FB's name", 89 89 .type = FB_TYPE_PACKED_PIXELS, 90 90 .visual = FB_VISUAL_PSEUDOCOLOR,