diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-09-11 11:17:20 -0400 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-09-27 04:16:35 -0400 |
| commit | ca9384c5911199257cbdf48f1bc3e3986de611a2 (patch) | |
| tree | be526bb6c590a0b30425a71367d1a447ba40ad35 /drivers/video | |
| parent | 1d2ffbd3e06d852362dbaa3457e0796cb32ee8ff (diff) | |
video: fbdev: constify fb_fix_screeninfo and fb_var_screeninfo structures
These structures are only used to copy into other structures, so declare
them as const.
The semantic patch that makes this change in the fb_fix_screeninfo case is
as follows (http://coccinelle.lip6.fr/). The fb_var_screeninfo case is
analogous.
// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct fb_fix_screeninfo i@p = { ... };
@ok@
identifier r.i;
expression e;
position p;
@@
e = i@p
@bad@
position p != {r.p,ok.p};
identifier r.i;
struct fb_fix_screeninfo e;
@@
e@i@p
@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct fb_fix_screeninfo i = { ... };
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
| -rw-r--r-- | drivers/video/fbdev/arcfb.c | 4 | ||||
| -rw-r--r-- | drivers/video/fbdev/asiliantfb.c | 4 | ||||
| -rw-r--r-- | drivers/video/fbdev/aty/aty128fb.c | 6 | ||||
| -rw-r--r-- | drivers/video/fbdev/aty/atyfb_base.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/aty/radeon_monitor.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/hecubafb.c | 4 | ||||
| -rw-r--r-- | drivers/video/fbdev/hgafb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/i740fb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/kyro/fbdev.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/pm2fb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/s1d13xxxfb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/savage/savagefb_driver.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/simplefb.c | 4 | ||||
| -rw-r--r-- | drivers/video/fbdev/sm712fb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/ssd1307fb.c | 4 | ||||
| -rw-r--r-- | drivers/video/fbdev/tdfxfb.c | 4 | ||||
| -rw-r--r-- | drivers/video/fbdev/uvesafb.c | 2 | ||||
| -rw-r--r-- | drivers/video/fbdev/vga16fb.c | 2 |
18 files changed, 26 insertions, 26 deletions
diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c index 1b0b233b8b39..1928cb2b5386 100644 --- a/drivers/video/fbdev/arcfb.c +++ b/drivers/video/fbdev/arcfb.c | |||
| @@ -79,7 +79,7 @@ struct arcfb_par { | |||
| 79 | spinlock_t lock; | 79 | spinlock_t lock; |
| 80 | }; | 80 | }; |
| 81 | 81 | ||
| 82 | static struct fb_fix_screeninfo arcfb_fix = { | 82 | static const struct fb_fix_screeninfo arcfb_fix = { |
| 83 | .id = "arcfb", | 83 | .id = "arcfb", |
| 84 | .type = FB_TYPE_PACKED_PIXELS, | 84 | .type = FB_TYPE_PACKED_PIXELS, |
| 85 | .visual = FB_VISUAL_MONO01, | 85 | .visual = FB_VISUAL_MONO01, |
| @@ -89,7 +89,7 @@ static struct fb_fix_screeninfo arcfb_fix = { | |||
| 89 | .accel = FB_ACCEL_NONE, | 89 | .accel = FB_ACCEL_NONE, |
| 90 | }; | 90 | }; |
| 91 | 91 | ||
| 92 | static struct fb_var_screeninfo arcfb_var = { | 92 | static const struct fb_var_screeninfo arcfb_var = { |
| 93 | .xres = 128, | 93 | .xres = 128, |
| 94 | .yres = 64, | 94 | .yres = 64, |
| 95 | .xres_virtual = 128, | 95 | .xres_virtual = 128, |
diff --git a/drivers/video/fbdev/asiliantfb.c b/drivers/video/fbdev/asiliantfb.c index 7e8ddf00ccc2..91eea4583382 100644 --- a/drivers/video/fbdev/asiliantfb.c +++ b/drivers/video/fbdev/asiliantfb.c | |||
| @@ -474,7 +474,7 @@ static void chips_hw_init(struct fb_info *p) | |||
| 474 | write_fr(chips_init_fr[i].addr, chips_init_fr[i].data); | 474 | write_fr(chips_init_fr[i].addr, chips_init_fr[i].data); |
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | static struct fb_fix_screeninfo asiliantfb_fix = { | 477 | static const struct fb_fix_screeninfo asiliantfb_fix = { |
| 478 | .id = "Asiliant 69000", | 478 | .id = "Asiliant 69000", |
| 479 | .type = FB_TYPE_PACKED_PIXELS, | 479 | .type = FB_TYPE_PACKED_PIXELS, |
| 480 | .visual = FB_VISUAL_PSEUDOCOLOR, | 480 | .visual = FB_VISUAL_PSEUDOCOLOR, |
| @@ -483,7 +483,7 @@ static struct fb_fix_screeninfo asiliantfb_fix = { | |||
| 483 | .smem_len = 0x200000, /* 2MB */ | 483 | .smem_len = 0x200000, /* 2MB */ |
| 484 | }; | 484 | }; |
| 485 | 485 | ||
| 486 | static struct fb_var_screeninfo asiliantfb_var = { | 486 | static const struct fb_var_screeninfo asiliantfb_var = { |
| 487 | .xres = 640, | 487 | .xres = 640, |
| 488 | .yres = 480, | 488 | .yres = 480, |
| 489 | .xres_virtual = 640, | 489 | .xres_virtual = 640, |
diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c index 0a4626886b00..fa07242a78d2 100644 --- a/drivers/video/fbdev/aty/aty128fb.c +++ b/drivers/video/fbdev/aty/aty128fb.c | |||
| @@ -93,7 +93,7 @@ | |||
| 93 | 93 | ||
| 94 | #ifndef CONFIG_PPC_PMAC | 94 | #ifndef CONFIG_PPC_PMAC |
| 95 | /* default mode */ | 95 | /* default mode */ |
| 96 | static struct fb_var_screeninfo default_var = { | 96 | static const struct fb_var_screeninfo default_var = { |
| 97 | /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ | 97 | /* 640x480, 60 Hz, Non-Interlaced (25.175 MHz dotclock) */ |
| 98 | 640, 480, 640, 480, 0, 0, 8, 0, | 98 | 640, 480, 640, 480, 0, 0, 8, 0, |
| 99 | {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0}, | 99 | {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0}, |
| @@ -104,7 +104,7 @@ static struct fb_var_screeninfo default_var = { | |||
| 104 | #else /* CONFIG_PPC_PMAC */ | 104 | #else /* CONFIG_PPC_PMAC */ |
| 105 | /* default to 1024x768 at 75Hz on PPC - this will work | 105 | /* default to 1024x768 at 75Hz on PPC - this will work |
| 106 | * on the iMac, the usual 640x480 @ 60Hz doesn't. */ | 106 | * on the iMac, the usual 640x480 @ 60Hz doesn't. */ |
| 107 | static struct fb_var_screeninfo default_var = { | 107 | static const struct fb_var_screeninfo default_var = { |
| 108 | /* 1024x768, 75 Hz, Non-Interlaced (78.75 MHz dotclock) */ | 108 | /* 1024x768, 75 Hz, Non-Interlaced (78.75 MHz dotclock) */ |
| 109 | 1024, 768, 1024, 768, 0, 0, 8, 0, | 109 | 1024, 768, 1024, 768, 0, 0, 8, 0, |
| 110 | {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0}, | 110 | {0, 8, 0}, {0, 8, 0}, {0, 8, 0}, {0, 0, 0}, |
| @@ -375,7 +375,7 @@ static const struct aty128_meminfo ddr_sgram = { | |||
| 375 | .name = "64-bit DDR SGRAM", | 375 | .name = "64-bit DDR SGRAM", |
| 376 | }; | 376 | }; |
| 377 | 377 | ||
| 378 | static struct fb_fix_screeninfo aty128fb_fix = { | 378 | static const struct fb_fix_screeninfo aty128fb_fix = { |
| 379 | .id = "ATY Rage128", | 379 | .id = "ATY Rage128", |
| 380 | .type = FB_TYPE_PACKED_PIXELS, | 380 | .type = FB_TYPE_PACKED_PIXELS, |
| 381 | .visual = FB_VISUAL_PSEUDOCOLOR, | 381 | .visual = FB_VISUAL_PSEUDOCOLOR, |
diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index f34ed47fcaf8..11026e726b68 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c | |||
| @@ -212,7 +212,7 @@ struct pci_mmap_map { | |||
| 212 | unsigned long prot_mask; | 212 | unsigned long prot_mask; |
| 213 | }; | 213 | }; |
| 214 | 214 | ||
| 215 | static struct fb_fix_screeninfo atyfb_fix = { | 215 | static const struct fb_fix_screeninfo atyfb_fix = { |
| 216 | .id = "ATY Mach64", | 216 | .id = "ATY Mach64", |
| 217 | .type = FB_TYPE_PACKED_PIXELS, | 217 | .type = FB_TYPE_PACKED_PIXELS, |
| 218 | .visual = FB_VISUAL_PSEUDOCOLOR, | 218 | .visual = FB_VISUAL_PSEUDOCOLOR, |
diff --git a/drivers/video/fbdev/aty/radeon_monitor.c b/drivers/video/fbdev/aty/radeon_monitor.c index f1ce229de78d..278b421ab3fe 100644 --- a/drivers/video/fbdev/aty/radeon_monitor.c +++ b/drivers/video/fbdev/aty/radeon_monitor.c | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include "../edid.h" | 5 | #include "../edid.h" |
| 6 | 6 | ||
| 7 | static struct fb_var_screeninfo radeonfb_default_var = { | 7 | static const struct fb_var_screeninfo radeonfb_default_var = { |
| 8 | .xres = 640, | 8 | .xres = 640, |
| 9 | .yres = 480, | 9 | .yres = 480, |
| 10 | .xres_virtual = 640, | 10 | .xres_virtual = 640, |
diff --git a/drivers/video/fbdev/hecubafb.c b/drivers/video/fbdev/hecubafb.c index e4031ef39491..8577195cb533 100644 --- a/drivers/video/fbdev/hecubafb.c +++ b/drivers/video/fbdev/hecubafb.c | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | #define DPY_W 600 | 47 | #define DPY_W 600 |
| 48 | #define DPY_H 800 | 48 | #define DPY_H 800 |
| 49 | 49 | ||
| 50 | static struct fb_fix_screeninfo hecubafb_fix = { | 50 | static const struct fb_fix_screeninfo hecubafb_fix = { |
| 51 | .id = "hecubafb", | 51 | .id = "hecubafb", |
| 52 | .type = FB_TYPE_PACKED_PIXELS, | 52 | .type = FB_TYPE_PACKED_PIXELS, |
| 53 | .visual = FB_VISUAL_MONO01, | 53 | .visual = FB_VISUAL_MONO01, |
| @@ -58,7 +58,7 @@ static struct fb_fix_screeninfo hecubafb_fix = { | |||
| 58 | .accel = FB_ACCEL_NONE, | 58 | .accel = FB_ACCEL_NONE, |
| 59 | }; | 59 | }; |
| 60 | 60 | ||
| 61 | static struct fb_var_screeninfo hecubafb_var = { | 61 | static const struct fb_var_screeninfo hecubafb_var = { |
| 62 | .xres = DPY_W, | 62 | .xres = DPY_W, |
| 63 | .yres = DPY_H, | 63 | .yres = DPY_H, |
| 64 | .xres_virtual = DPY_W, | 64 | .xres_virtual = DPY_W, |
diff --git a/drivers/video/fbdev/hgafb.c b/drivers/video/fbdev/hgafb.c index 15d3ccff2965..463028543173 100644 --- a/drivers/video/fbdev/hgafb.c +++ b/drivers/video/fbdev/hgafb.c | |||
| @@ -106,7 +106,7 @@ static DEFINE_SPINLOCK(hga_reg_lock); | |||
| 106 | 106 | ||
| 107 | /* Framebuffer driver structures */ | 107 | /* Framebuffer driver structures */ |
| 108 | 108 | ||
| 109 | static struct fb_var_screeninfo hga_default_var = { | 109 | static const struct fb_var_screeninfo hga_default_var = { |
| 110 | .xres = 720, | 110 | .xres = 720, |
| 111 | .yres = 348, | 111 | .yres = 348, |
| 112 | .xres_virtual = 720, | 112 | .xres_virtual = 720, |
diff --git a/drivers/video/fbdev/i740fb.c b/drivers/video/fbdev/i740fb.c index cf5ccd0f2252..7bc5f6056c77 100644 --- a/drivers/video/fbdev/i740fb.c +++ b/drivers/video/fbdev/i740fb.c | |||
| @@ -82,7 +82,7 @@ struct i740fb_par { | |||
| 82 | #define DACSPEED24_SD 128 | 82 | #define DACSPEED24_SD 128 |
| 83 | #define DACSPEED32 86 | 83 | #define DACSPEED32 86 |
| 84 | 84 | ||
| 85 | static struct fb_fix_screeninfo i740fb_fix = { | 85 | static const struct fb_fix_screeninfo i740fb_fix = { |
| 86 | .id = "i740fb", | 86 | .id = "i740fb", |
| 87 | .type = FB_TYPE_PACKED_PIXELS, | 87 | .type = FB_TYPE_PACKED_PIXELS, |
| 88 | .visual = FB_VISUAL_TRUECOLOR, | 88 | .visual = FB_VISUAL_TRUECOLOR, |
diff --git a/drivers/video/fbdev/kyro/fbdev.c b/drivers/video/fbdev/kyro/fbdev.c index 5bb01533271e..f77478fb3d14 100644 --- a/drivers/video/fbdev/kyro/fbdev.c +++ b/drivers/video/fbdev/kyro/fbdev.c | |||
| @@ -44,7 +44,7 @@ static struct fb_fix_screeninfo kyro_fix = { | |||
| 44 | .accel = FB_ACCEL_NONE, | 44 | .accel = FB_ACCEL_NONE, |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | static struct fb_var_screeninfo kyro_var = { | 47 | static const struct fb_var_screeninfo kyro_var = { |
| 48 | /* 640x480, 16bpp @ 60 Hz */ | 48 | /* 640x480, 16bpp @ 60 Hz */ |
| 49 | .xres = 640, | 49 | .xres = 640, |
| 50 | .yres = 480, | 50 | .yres = 480, |
diff --git a/drivers/video/fbdev/pm2fb.c b/drivers/video/fbdev/pm2fb.c index aa8d28880912..1a4070f719c2 100644 --- a/drivers/video/fbdev/pm2fb.c +++ b/drivers/video/fbdev/pm2fb.c | |||
| @@ -113,7 +113,7 @@ static struct fb_fix_screeninfo pm2fb_fix = { | |||
| 113 | /* | 113 | /* |
| 114 | * Default video mode. In case the modedb doesn't work. | 114 | * Default video mode. In case the modedb doesn't work. |
| 115 | */ | 115 | */ |
| 116 | static struct fb_var_screeninfo pm2fb_var = { | 116 | static const struct fb_var_screeninfo pm2fb_var = { |
| 117 | /* "640x480, 8 bpp @ 60 Hz */ | 117 | /* "640x480, 8 bpp @ 60 Hz */ |
| 118 | .xres = 640, | 118 | .xres = 640, |
| 119 | .yres = 480, | 119 | .yres = 480, |
diff --git a/drivers/video/fbdev/s1d13xxxfb.c b/drivers/video/fbdev/s1d13xxxfb.c index 6a271d800a53..5d6179ef0298 100644 --- a/drivers/video/fbdev/s1d13xxxfb.c +++ b/drivers/video/fbdev/s1d13xxxfb.c | |||
| @@ -83,7 +83,7 @@ static const char *s1d13xxxfb_prod_names[] = { | |||
| 83 | /* | 83 | /* |
| 84 | * here we define the default struct fb_fix_screeninfo | 84 | * here we define the default struct fb_fix_screeninfo |
| 85 | */ | 85 | */ |
| 86 | static struct fb_fix_screeninfo s1d13xxxfb_fix = { | 86 | static const struct fb_fix_screeninfo s1d13xxxfb_fix = { |
| 87 | .id = S1D_FBID, | 87 | .id = S1D_FBID, |
| 88 | .type = FB_TYPE_PACKED_PIXELS, | 88 | .type = FB_TYPE_PACKED_PIXELS, |
| 89 | .visual = FB_VISUAL_PSEUDOCOLOR, | 89 | .visual = FB_VISUAL_PSEUDOCOLOR, |
diff --git a/drivers/video/fbdev/savage/savagefb_driver.c b/drivers/video/fbdev/savage/savagefb_driver.c index 6c77ab09b0b2..c30a91c1137c 100644 --- a/drivers/video/fbdev/savage/savagefb_driver.c +++ b/drivers/video/fbdev/savage/savagefb_driver.c | |||
| @@ -1660,7 +1660,7 @@ static struct fb_ops savagefb_ops = { | |||
| 1660 | 1660 | ||
| 1661 | /* --------------------------------------------------------------------- */ | 1661 | /* --------------------------------------------------------------------- */ |
| 1662 | 1662 | ||
| 1663 | static struct fb_var_screeninfo savagefb_var800x600x8 = { | 1663 | static const struct fb_var_screeninfo savagefb_var800x600x8 = { |
| 1664 | .accel_flags = FB_ACCELF_TEXT, | 1664 | .accel_flags = FB_ACCELF_TEXT, |
| 1665 | .xres = 800, | 1665 | .xres = 800, |
| 1666 | .yres = 600, | 1666 | .yres = 600, |
diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c index e9cf19977285..85775dfd54b1 100644 --- a/drivers/video/fbdev/simplefb.c +++ b/drivers/video/fbdev/simplefb.c | |||
| @@ -33,14 +33,14 @@ | |||
| 33 | #include <linux/parser.h> | 33 | #include <linux/parser.h> |
| 34 | #include <linux/regulator/consumer.h> | 34 | #include <linux/regulator/consumer.h> |
| 35 | 35 | ||
| 36 | static struct fb_fix_screeninfo simplefb_fix = { | 36 | static const struct fb_fix_screeninfo simplefb_fix = { |
| 37 | .id = "simple", | 37 | .id = "simple", |
| 38 | .type = FB_TYPE_PACKED_PIXELS, | 38 | .type = FB_TYPE_PACKED_PIXELS, |
| 39 | .visual = FB_VISUAL_TRUECOLOR, | 39 | .visual = FB_VISUAL_TRUECOLOR, |
| 40 | .accel = FB_ACCEL_NONE, | 40 | .accel = FB_ACCEL_NONE, |
| 41 | }; | 41 | }; |
| 42 | 42 | ||
| 43 | static struct fb_var_screeninfo simplefb_var = { | 43 | static const struct fb_var_screeninfo simplefb_var = { |
| 44 | .height = -1, | 44 | .height = -1, |
| 45 | .width = -1, | 45 | .width = -1, |
| 46 | .activate = FB_ACTIVATE_NOW, | 46 | .activate = FB_ACTIVATE_NOW, |
diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c index 86ae1d4556fc..73cb4ffff3c5 100644 --- a/drivers/video/fbdev/sm712fb.c +++ b/drivers/video/fbdev/sm712fb.c | |||
| @@ -56,7 +56,7 @@ struct smtcfb_info { | |||
| 56 | 56 | ||
| 57 | void __iomem *smtc_regbaseaddress; /* Memory Map IO starting address */ | 57 | void __iomem *smtc_regbaseaddress; /* Memory Map IO starting address */ |
| 58 | 58 | ||
| 59 | static struct fb_var_screeninfo smtcfb_var = { | 59 | static const struct fb_var_screeninfo smtcfb_var = { |
| 60 | .xres = 1024, | 60 | .xres = 1024, |
| 61 | .yres = 600, | 61 | .yres = 600, |
| 62 | .xres_virtual = 1024, | 62 | .xres_virtual = 1024, |
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index a9c45c89b15e..1feda0cd0ea4 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c | |||
| @@ -84,7 +84,7 @@ struct ssd1307fb_array { | |||
| 84 | u8 data[0]; | 84 | u8 data[0]; |
| 85 | }; | 85 | }; |
| 86 | 86 | ||
| 87 | static struct fb_fix_screeninfo ssd1307fb_fix = { | 87 | static const struct fb_fix_screeninfo ssd1307fb_fix = { |
| 88 | .id = "Solomon SSD1307", | 88 | .id = "Solomon SSD1307", |
| 89 | .type = FB_TYPE_PACKED_PIXELS, | 89 | .type = FB_TYPE_PACKED_PIXELS, |
| 90 | .visual = FB_VISUAL_MONO10, | 90 | .visual = FB_VISUAL_MONO10, |
| @@ -94,7 +94,7 @@ static struct fb_fix_screeninfo ssd1307fb_fix = { | |||
| 94 | .accel = FB_ACCEL_NONE, | 94 | .accel = FB_ACCEL_NONE, |
| 95 | }; | 95 | }; |
| 96 | 96 | ||
| 97 | static struct fb_var_screeninfo ssd1307fb_var = { | 97 | static const struct fb_var_screeninfo ssd1307fb_var = { |
| 98 | .bits_per_pixel = 1, | 98 | .bits_per_pixel = 1, |
| 99 | }; | 99 | }; |
| 100 | 100 | ||
diff --git a/drivers/video/fbdev/tdfxfb.c b/drivers/video/fbdev/tdfxfb.c index 621fa441a6db..d5fa313806fe 100644 --- a/drivers/video/fbdev/tdfxfb.c +++ b/drivers/video/fbdev/tdfxfb.c | |||
| @@ -82,7 +82,7 @@ | |||
| 82 | #define VOODOO3_MAX_PIXCLOCK 300000 | 82 | #define VOODOO3_MAX_PIXCLOCK 300000 |
| 83 | #define VOODOO5_MAX_PIXCLOCK 350000 | 83 | #define VOODOO5_MAX_PIXCLOCK 350000 |
| 84 | 84 | ||
| 85 | static struct fb_fix_screeninfo tdfx_fix = { | 85 | static const struct fb_fix_screeninfo tdfx_fix = { |
| 86 | .type = FB_TYPE_PACKED_PIXELS, | 86 | .type = FB_TYPE_PACKED_PIXELS, |
| 87 | .visual = FB_VISUAL_PSEUDOCOLOR, | 87 | .visual = FB_VISUAL_PSEUDOCOLOR, |
| 88 | .ypanstep = 1, | 88 | .ypanstep = 1, |
| @@ -90,7 +90,7 @@ static struct fb_fix_screeninfo tdfx_fix = { | |||
| 90 | .accel = FB_ACCEL_3DFX_BANSHEE | 90 | .accel = FB_ACCEL_3DFX_BANSHEE |
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | static struct fb_var_screeninfo tdfx_var = { | 93 | static const struct fb_var_screeninfo tdfx_var = { |
| 94 | /* "640x480, 8 bpp @ 60 Hz */ | 94 | /* "640x480, 8 bpp @ 60 Hz */ |
| 95 | .xres = 640, | 95 | .xres = 640, |
| 96 | .yres = 480, | 96 | .yres = 480, |
diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c index 178ae93b7ebd..98af9e02959b 100644 --- a/drivers/video/fbdev/uvesafb.c +++ b/drivers/video/fbdev/uvesafb.c | |||
| @@ -33,7 +33,7 @@ static struct cb_id uvesafb_cn_id = { | |||
| 33 | static char v86d_path[PATH_MAX] = "/sbin/v86d"; | 33 | static char v86d_path[PATH_MAX] = "/sbin/v86d"; |
| 34 | static char v86d_started; /* has v86d been started by uvesafb? */ | 34 | static char v86d_started; /* has v86d been started by uvesafb? */ |
| 35 | 35 | ||
| 36 | static struct fb_fix_screeninfo uvesafb_fix = { | 36 | static const struct fb_fix_screeninfo uvesafb_fix = { |
| 37 | .id = "VESA VGA", | 37 | .id = "VESA VGA", |
| 38 | .type = FB_TYPE_PACKED_PIXELS, | 38 | .type = FB_TYPE_PACKED_PIXELS, |
| 39 | .accel = FB_ACCEL_NONE, | 39 | .accel = FB_ACCEL_NONE, |
diff --git a/drivers/video/fbdev/vga16fb.c b/drivers/video/fbdev/vga16fb.c index 283d335a759f..5f0690c8fc93 100644 --- a/drivers/video/fbdev/vga16fb.c +++ b/drivers/video/fbdev/vga16fb.c | |||
| @@ -85,7 +85,7 @@ static struct fb_var_screeninfo vga16fb_defined = { | |||
| 85 | }; | 85 | }; |
| 86 | 86 | ||
| 87 | /* name should not depend on EGA/VGA */ | 87 | /* name should not depend on EGA/VGA */ |
| 88 | static struct fb_fix_screeninfo vga16fb_fix = { | 88 | static const struct fb_fix_screeninfo vga16fb_fix = { |
| 89 | .id = "VGA16 VGA", | 89 | .id = "VGA16 VGA", |
| 90 | .smem_start = VGA_FB_PHYS, | 90 | .smem_start = VGA_FB_PHYS, |
| 91 | .smem_len = VGA_FB_PHYS_LEN, | 91 | .smem_len = VGA_FB_PHYS_LEN, |
