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