mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
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>
This commit is contained in:
parent
8e75f7a7a0
commit
a7582733ef
@ -69,7 +69,7 @@ static const struct fb_videomode unifb_modes[] = {
|
||||
0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA },
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo unifb_default = {
|
||||
static const struct fb_var_screeninfo unifb_default = {
|
||||
.xres = 640,
|
||||
.yres = 480,
|
||||
.xres_virtual = 640,
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
static struct fb_info fb_info;
|
||||
|
||||
static struct fb_var_screeninfo maxinefb_defined = {
|
||||
static const struct fb_var_screeninfo maxinefb_defined = {
|
||||
.xres = 1024,
|
||||
.yres = 768,
|
||||
.xres_virtual = 1024,
|
||||
|
@ -67,7 +67,7 @@ struct aafb_par {
|
||||
struct bt431_regs __iomem *bt431;
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo aafb_defined = {
|
||||
static const struct fb_var_screeninfo aafb_defined = {
|
||||
.xres = 1280,
|
||||
.yres = 1024,
|
||||
.xres_virtual = 2048,
|
||||
|
@ -43,7 +43,7 @@ struct pmagbafb_par {
|
||||
};
|
||||
|
||||
|
||||
static struct fb_var_screeninfo pmagbafb_defined = {
|
||||
static const struct fb_var_screeninfo pmagbafb_defined = {
|
||||
.xres = 1024,
|
||||
.yres = 864,
|
||||
.xres_virtual = 1024,
|
||||
|
@ -44,7 +44,7 @@ struct pmagbbfb_par {
|
||||
};
|
||||
|
||||
|
||||
static struct fb_var_screeninfo pmagbbfb_defined = {
|
||||
static const struct fb_var_screeninfo pmagbbfb_defined = {
|
||||
.bits_per_pixel = 8,
|
||||
.red.length = 8,
|
||||
.green.length = 8,
|
||||
|
@ -154,7 +154,7 @@ static struct fb_fix_screeninfo pvr2_fix = {
|
||||
.accel = FB_ACCEL_NONE,
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo pvr2_var = {
|
||||
static const struct fb_var_screeninfo pvr2_var = {
|
||||
.xres = 640,
|
||||
.yres = 480,
|
||||
.xres_virtual = 640,
|
||||
|
@ -36,7 +36,7 @@ static struct fb_fix_screeninfo q40fb_fix = {
|
||||
.accel = FB_ACCEL_NONE,
|
||||
};
|
||||
|
||||
static struct fb_var_screeninfo q40fb_var = {
|
||||
static const struct fb_var_screeninfo q40fb_var = {
|
||||
.xres = 1024,
|
||||
.yres = 512,
|
||||
.xres_virtual = 1024,
|
||||
|
Loading…
x
Reference in New Issue
Block a user