]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
video: fbdev: make fb_var_screeninfo const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
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>
drivers/video/fbdev/fb-puv3.c
drivers/video/fbdev/maxinefb.c
drivers/video/fbdev/pmag-aa-fb.c
drivers/video/fbdev/pmag-ba-fb.c
drivers/video/fbdev/pmagb-b-fb.c
drivers/video/fbdev/pvr2fb.c
drivers/video/fbdev/q40fb.c

index 88fa2e70a0bb1683fe04e81b3f32227b7d2f6789..d9e816d53531324b2ec03a33ebea709936489c53 100644 (file)
@@ -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,
index cab7333208eab44e38b1ac8f33bfd1a3c230dcfc..5bb1b5c308a775d4f35c83b2ed243e0996e7146e 100644 (file)
@@ -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,
index b07ef493316b862ec5b2570a9b56152427c4448c..ca7e9390d1e7e56af5832af076fd0181ae482ea8 100644 (file)
@@ -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,
index 8d1a878f858663f4832f290a141261e95a84c207..3b9249449ea613967f65912d86e9fb4f7644a5b8 100644 (file)
@@ -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,
index 5ad9b630cf6584c1aa739a911da03d60ec6c39f6..e58df36233c4f35d49de997dc3a3878ec5130c9a 100644 (file)
@@ -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,
index c6212abc33e888a59175eb3cd45c7013b97d9ee6..867c5218968f71cb105587c9add276ca9104227a 100644 (file)
@@ -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,
index 04ea330ccf5da2501d679fd929bad51cf90f58cf..0b93aa964d435a23836e1a29a01e540a54dc0de8 100644 (file)
@@ -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,