video: fbdev: make fb_var_screeninfo const

Make these const as they are not modified anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Bhumika Goyal and committed by
Bartlomiej Zolnierkiewicz
a7582733 8e75f7a7

+7 -7
+1 -1
drivers/video/fbdev/fb-puv3.c
··· 69 0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA }, 70 }; 71 72 - static struct fb_var_screeninfo unifb_default = { 73 .xres = 640, 74 .yres = 480, 75 .xres_virtual = 640,
··· 69 0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA }, 70 }; 71 72 + static const struct fb_var_screeninfo unifb_default = { 73 .xres = 640, 74 .yres = 480, 75 .xres_virtual = 640,
+1 -1
drivers/video/fbdev/maxinefb.c
··· 39 40 static struct fb_info fb_info; 41 42 - static struct fb_var_screeninfo maxinefb_defined = { 43 .xres = 1024, 44 .yres = 768, 45 .xres_virtual = 1024,
··· 39 40 static struct fb_info fb_info; 41 42 + static const struct fb_var_screeninfo maxinefb_defined = { 43 .xres = 1024, 44 .yres = 768, 45 .xres_virtual = 1024,
+1 -1
drivers/video/fbdev/pmag-aa-fb.c
··· 67 struct bt431_regs __iomem *bt431; 68 }; 69 70 - static struct fb_var_screeninfo aafb_defined = { 71 .xres = 1280, 72 .yres = 1024, 73 .xres_virtual = 2048,
··· 67 struct bt431_regs __iomem *bt431; 68 }; 69 70 + static const struct fb_var_screeninfo aafb_defined = { 71 .xres = 1280, 72 .yres = 1024, 73 .xres_virtual = 2048,
+1 -1
drivers/video/fbdev/pmag-ba-fb.c
··· 43 }; 44 45 46 - static struct fb_var_screeninfo pmagbafb_defined = { 47 .xres = 1024, 48 .yres = 864, 49 .xres_virtual = 1024,
··· 43 }; 44 45 46 + static const struct fb_var_screeninfo pmagbafb_defined = { 47 .xres = 1024, 48 .yres = 864, 49 .xres_virtual = 1024,
+1 -1
drivers/video/fbdev/pmagb-b-fb.c
··· 44 }; 45 46 47 - static struct fb_var_screeninfo pmagbbfb_defined = { 48 .bits_per_pixel = 8, 49 .red.length = 8, 50 .green.length = 8,
··· 44 }; 45 46 47 + static const struct fb_var_screeninfo pmagbbfb_defined = { 48 .bits_per_pixel = 8, 49 .red.length = 8, 50 .green.length = 8,
+1 -1
drivers/video/fbdev/pvr2fb.c
··· 154 .accel = FB_ACCEL_NONE, 155 }; 156 157 - static struct fb_var_screeninfo pvr2_var = { 158 .xres = 640, 159 .yres = 480, 160 .xres_virtual = 640,
··· 154 .accel = FB_ACCEL_NONE, 155 }; 156 157 + static const struct fb_var_screeninfo pvr2_var = { 158 .xres = 640, 159 .yres = 480, 160 .xres_virtual = 640,
+1 -1
drivers/video/fbdev/q40fb.c
··· 36 .accel = FB_ACCEL_NONE, 37 }; 38 39 - static struct fb_var_screeninfo q40fb_var = { 40 .xres = 1024, 41 .yres = 512, 42 .xres_virtual = 1024,
··· 36 .accel = FB_ACCEL_NONE, 37 }; 38 39 + static const struct fb_var_screeninfo q40fb_var = { 40 .xres = 1024, 41 .yres = 512, 42 .xres_virtual = 1024,