video: constify fb ops across all drivers
authorJani Nikula <jani.nikula@intel.com>
Tue, 3 Dec 2019 16:38:50 +0000 (18:38 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 5 Dec 2019 08:57:53 +0000 (10:57 +0200)
Now that the fbops member of struct fb_info is const, we can start
making the ops const as well.

This does not cover all drivers; some actually modify the fbops struct,
for example to adjust for different configurations, and others do more
involved things that I'd rather not touch in practically obsolete
drivers. Mostly this is the low hanging fruit where we can add "const"
and be done with it.

v3:
- un-constify atyfb, mb862xx, nvidia and uvesabf (0day)

v2:
- fix typo (Christophe de Dinechin)
- use "static const" instead of "const static" in mx3fb.c
- also constify smscufx.c

Cc: linux-fbdev@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ce67f14435f3af498f2e8bf35ce4be11f7504132.1575390740.git.jani.nikula@intel.com
107 files changed:
drivers/video/fbdev/68328fb.c
drivers/video/fbdev/acornfb.c
drivers/video/fbdev/amba-clcd.c
drivers/video/fbdev/amifb.c
drivers/video/fbdev/arcfb.c
drivers/video/fbdev/arkfb.c
drivers/video/fbdev/asiliantfb.c
drivers/video/fbdev/atmel_lcdfb.c
drivers/video/fbdev/aty/aty128fb.c
drivers/video/fbdev/aty/radeon_base.c
drivers/video/fbdev/au1100fb.c
drivers/video/fbdev/au1200fb.c
drivers/video/fbdev/broadsheetfb.c
drivers/video/fbdev/bw2.c
drivers/video/fbdev/carminefb.c
drivers/video/fbdev/cg14.c
drivers/video/fbdev/cg3.c
drivers/video/fbdev/cg6.c
drivers/video/fbdev/chipsfb.c
drivers/video/fbdev/cirrusfb.c
drivers/video/fbdev/clps711x-fb.c
drivers/video/fbdev/cobalt_lcdfb.c
drivers/video/fbdev/controlfb.c
drivers/video/fbdev/cyber2000fb.c
drivers/video/fbdev/da8xx-fb.c
drivers/video/fbdev/dnfb.c
drivers/video/fbdev/efifb.c
drivers/video/fbdev/ep93xx-fb.c
drivers/video/fbdev/fb-puv3.c
drivers/video/fbdev/ffb.c
drivers/video/fbdev/fm2fb.c
drivers/video/fbdev/fsl-diu-fb.c
drivers/video/fbdev/g364fb.c
drivers/video/fbdev/gbefb.c
drivers/video/fbdev/geode/gx1fb_core.c
drivers/video/fbdev/geode/gxfb_core.c
drivers/video/fbdev/geode/lxfb_core.c
drivers/video/fbdev/goldfishfb.c
drivers/video/fbdev/grvga.c
drivers/video/fbdev/gxt4500.c
drivers/video/fbdev/hecubafb.c
drivers/video/fbdev/hgafb.c
drivers/video/fbdev/hitfb.c
drivers/video/fbdev/hpfb.c
drivers/video/fbdev/hyperv_fb.c
drivers/video/fbdev/i740fb.c
drivers/video/fbdev/imsttfb.c
drivers/video/fbdev/imxfb.c
drivers/video/fbdev/intelfb/intelfbdrv.c
drivers/video/fbdev/kyro/fbdev.c
drivers/video/fbdev/leo.c
drivers/video/fbdev/macfb.c
drivers/video/fbdev/matrox/matroxfb_crtc2.c
drivers/video/fbdev/maxinefb.c
drivers/video/fbdev/mbx/mbxfb.c
drivers/video/fbdev/metronomefb.c
drivers/video/fbdev/mmp/fb/mmpfb.c
drivers/video/fbdev/mx3fb.c
drivers/video/fbdev/neofb.c
drivers/video/fbdev/ocfb.c
drivers/video/fbdev/offb.c
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
drivers/video/fbdev/p9100.c
drivers/video/fbdev/platinumfb.c
drivers/video/fbdev/pm2fb.c
drivers/video/fbdev/pm3fb.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/ps3fb.c
drivers/video/fbdev/pvr2fb.c
drivers/video/fbdev/pxa168fb.c
drivers/video/fbdev/pxafb.c
drivers/video/fbdev/q40fb.c
drivers/video/fbdev/riva/fbdev.c
drivers/video/fbdev/s3c-fb.c
drivers/video/fbdev/s3c2410fb.c
drivers/video/fbdev/s3fb.c
drivers/video/fbdev/sa1100fb.c
drivers/video/fbdev/savage/savagefb_driver.c
drivers/video/fbdev/sh7760fb.c
drivers/video/fbdev/sh_mobile_lcdcfb.c
drivers/video/fbdev/simplefb.c
drivers/video/fbdev/sis/sis_main.c
drivers/video/fbdev/skeletonfb.c
drivers/video/fbdev/sm712fb.c
drivers/video/fbdev/smscufx.c
drivers/video/fbdev/ssd1307fb.c
drivers/video/fbdev/sstfb.c
drivers/video/fbdev/stifb.c
drivers/video/fbdev/sunxvr1000.c
drivers/video/fbdev/sunxvr2500.c
drivers/video/fbdev/sunxvr500.c
drivers/video/fbdev/tcx.c
drivers/video/fbdev/tdfxfb.c
drivers/video/fbdev/tgafb.c
drivers/video/fbdev/tmiofb.c
drivers/video/fbdev/tridentfb.c
drivers/video/fbdev/valkyriefb.c
drivers/video/fbdev/vfb.c
drivers/video/fbdev/vga16fb.c
drivers/video/fbdev/vt8500lcdfb.c
drivers/video/fbdev/vt8623fb.c
drivers/video/fbdev/w100fb.c
drivers/video/fbdev/wm8505fb.c
drivers/video/fbdev/xen-fbfront.c
drivers/video/fbdev/xilinxfb.c

index d48e96088f76fcf90c3b53a628952dcc1e8b90e2..491fd5a8299362719f6a5f778f60c68a65084a00 100644 (file)
@@ -96,7 +96,7 @@ static int mc68x328fb_pan_display(struct fb_var_screeninfo *var,
                           struct fb_info *info);
 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
 
-static struct fb_ops mc68x328fb_ops = {
+static const struct fb_ops mc68x328fb_ops = {
        .fb_check_var   = mc68x328fb_check_var,
        .fb_set_par     = mc68x328fb_set_par,
        .fb_setcolreg   = mc68x328fb_setcolreg,
index 7cacae5a8797d9faeaa1e8fa572af53ae2dd5f62..a3af49529173de4df7fd6b6e93affe0d361181db 100644 (file)
@@ -604,7 +604,7 @@ acornfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops acornfb_ops = {
+static const struct fb_ops acornfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = acornfb_check_var,
        .fb_set_par     = acornfb_set_par,
index 7de43be6ef2c294d11d0a35b60fe067e03e23471..c3d55fc6c4e0354559ab6dab0bb128e541d4251d 100644 (file)
@@ -423,7 +423,7 @@ static int clcdfb_mmap(struct fb_info *info,
        return ret;
 }
 
-static struct fb_ops clcdfb_ops = {
+static const struct fb_ops clcdfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = clcdfb_check_var,
        .fb_set_par     = clcdfb_set_par,
index 91ddc960201465059ff08b1d773b1ee4f5468975..20e03e00b66d56393418577d3c610838a7463f9e 100644 (file)
@@ -3493,7 +3493,7 @@ static irqreturn_t amifb_interrupt(int irq, void *dev_id)
 }
 
 
-static struct fb_ops amifb_ops = {
+static const struct fb_ops amifb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = amifb_check_var,
        .fb_set_par     = amifb_set_par,
index a48741aab24034dd9cd85249a5eb3fa2e354cdb1..314ab82e01c027503856d1e6fde3f1f94a6ae276 100644 (file)
@@ -491,7 +491,7 @@ static ssize_t arcfb_write(struct fb_info *info, const char __user *buf,
        return err;
 }
 
-static struct fb_ops arcfb_ops = {
+static const struct fb_ops arcfb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = arcfb_open,
        .fb_read        = fb_sys_read,
index f940e8b66b858aa026640d218b051c3d673893aa..11ab9a15386081e8cb4cc8863bf4c746ce3bbac8 100644 (file)
@@ -917,7 +917,7 @@ static int arkfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info
 
 /* Frame buffer operations */
 
-static struct fb_ops arkfb_ops = {
+static const struct fb_ops arkfb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = arkfb_open,
        .fb_release     = arkfb_release,
index ea31054a28ca80205c50d6b0a97f7a71fb177297..3e006da47752355b2a235ba9f7d95fdaca7738d0 100644 (file)
@@ -95,7 +95,7 @@ static int asiliantfb_set_par(struct fb_info *info);
 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
                                u_int transp, struct fb_info *info);
 
-static struct fb_ops asiliantfb_ops = {
+static const struct fb_ops asiliantfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = asiliantfb_check_var,
        .fb_set_par     = asiliantfb_set_par,
index 5ff8e0320d95b885be49f9e381ee8055cb39a1ec..d567f5d56c13e316d087fa6cc99c25cc09ee98ad 100644 (file)
@@ -824,7 +824,7 @@ static int atmel_lcdfb_blank(int blank_mode, struct fb_info *info)
        return ((blank_mode == FB_BLANK_NORMAL) ? 1 : 0);
 }
 
-static struct fb_ops atmel_lcdfb_ops = {
+static const struct fb_ops atmel_lcdfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = atmel_lcdfb_check_var,
        .fb_set_par     = atmel_lcdfb_set_par,
index fc1e45d44719b65cf07d95235e6abdc3f93a6dc7..d7e41c8dd533c785fa0a55dfaf11faeb88adaebf 100644 (file)
@@ -509,7 +509,7 @@ static void aty128_bl_set_power(struct fb_info *info, int power);
                          (readb(bios + (v) + 3) << 24))
 
 
-static struct fb_ops aty128fb_ops = {
+static const struct fb_ops aty128fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = aty128fb_check_var,
        .fb_set_par     = aty128fb_set_par,
index 4ca07866f2f66c10a04a2f0ab639a566c3da0010..3af00e3b965e625c88867de252f10536d4331d1a 100644 (file)
@@ -1965,7 +1965,7 @@ static int radeonfb_set_par(struct fb_info *info)
 }
 
 
-static struct fb_ops radeonfb_ops = {
+static const struct fb_ops radeonfb_ops = {
        .owner                  = THIS_MODULE,
        .fb_check_var           = radeonfb_check_var,
        .fb_set_par             = radeonfb_set_par,
index 99941ae1f3a1cb489bf01bd334b77146c03c7f59..37a6512feda0fb2042e8fe3676cc545de4a2ee36 100644 (file)
@@ -348,7 +348,7 @@ int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)
                        fbdev->fb_len);
 }
 
-static struct fb_ops au1100fb_ops =
+static const struct fb_ops au1100fb_ops =
 {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = au1100fb_fb_setcolreg,
index 265d3b45efd0c0d7ef8e5f50f005f892f4d95ef5..c00e01a17368574f70d1ef6d51780dd8cc30dd3f 100644 (file)
@@ -1483,7 +1483,7 @@ static int au1200fb_ioctl(struct fb_info *info, unsigned int cmd,
 }
 
 
-static struct fb_ops au1200fb_fb_ops = {
+static const struct fb_ops au1200fb_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = au1200fb_fb_check_var,
        .fb_set_par     = au1200fb_fb_set_par,
index d6ba348deb9fbd74935d0fd2c3aec59785428b64..fd66f4d4a621b754739509b334cf98b6b9990ca8 100644 (file)
@@ -1048,7 +1048,7 @@ static ssize_t broadsheetfb_write(struct fb_info *info, const char __user *buf,
        return (err) ? err : count;
 }
 
-static struct fb_ops broadsheetfb_ops = {
+static const struct fb_ops broadsheetfb_ops = {
        .owner          = THIS_MODULE,
        .fb_read        = fb_sys_read,
        .fb_write       = broadsheetfb_write,
index 436f10f3d37503b2608e8e5eab6a174622647e9c..0d9a6bb57a09be9b7a1896c9feb4e3b9c9c0c1b8 100644 (file)
@@ -37,7 +37,7 @@ static int bw2_ioctl(struct fb_info *, unsigned int, unsigned long);
  *  Frame buffer operations
  */
 
-static struct fb_ops bw2_ops = {
+static const struct fb_ops bw2_ops = {
        .owner                  = THIS_MODULE,
        .fb_blank               = bw2_blank,
        .fb_fillrect            = cfb_fillrect,
index 9f3be0258623714789de2bf215e7b8d1cda820e7..bf3f2a9598b1733b7364cd17579aa6fd330011c7 100644 (file)
@@ -527,7 +527,7 @@ static int init_hardware(struct carmine_hw *hw)
        return 0;
 }
 
-static struct fb_ops carminefb_ops = {
+static const struct fb_ops carminefb_ops = {
        .owner          = THIS_MODULE,
        .fb_fillrect    = cfb_fillrect,
        .fb_copyarea    = cfb_copyarea,
index d80d99db3a461a82a8eaba92c81dafbc60532096..a620b51cf7d0a3f9d88632e06196330cdb5404cc 100644 (file)
@@ -39,7 +39,7 @@ static int cg14_pan_display(struct fb_var_screeninfo *, struct fb_info *);
  *  Frame buffer operations
  */
 
-static struct fb_ops cg14_ops = {
+static const struct fb_ops cg14_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = cg14_setcolreg,
        .fb_pan_display         = cg14_pan_display,
index 09f616dddfd773ff4e9c5c9a894b352323f19a68..77f6470ce665744375b4b390a0af99fa6ebb3aa7 100644 (file)
@@ -39,7 +39,7 @@ static int cg3_ioctl(struct fb_info *, unsigned int, unsigned long);
  *  Frame buffer operations
  */
 
-static struct fb_ops cg3_ops = {
+static const struct fb_ops cg3_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = cg3_setcolreg,
        .fb_blank               = cg3_blank,
index d5888aecc2fb770d3304c149463fad5e597853ef..a1c68cd48d7ed2ad54510accdc26e1ae27dac608 100644 (file)
@@ -44,7 +44,7 @@ static int cg6_pan_display(struct fb_var_screeninfo *, struct fb_info *);
  *  Frame buffer operations
  */
 
-static struct fb_ops cg6_ops = {
+static const struct fb_ops cg6_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = cg6_setcolreg,
        .fb_blank               = cg6_blank,
index f4dc320dcafe29a3778f441eed9479921dee1fe8..998067b701fa025ebe80657baba51ba8e1b51566 100644 (file)
@@ -79,7 +79,7 @@ static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
                             u_int transp, struct fb_info *info);
 static int chipsfb_blank(int blank, struct fb_info *info);
 
-static struct fb_ops chipsfb_ops = {
+static const struct fb_ops chipsfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = chipsfb_check_var,
        .fb_set_par     = chipsfb_set_par,
index e4ce5667b125152a8fb7f7c35407eb3c4c0063fb..c3a3e344cee3ae6facc075d556739bf340e34a57 100644 (file)
@@ -1956,7 +1956,7 @@ static void cirrusfb_zorro_unmap(struct fb_info *info)
 #endif /* CONFIG_ZORRO */
 
 /* function table of the above functions */
-static struct fb_ops cirrusfb_ops = {
+static const struct fb_ops cirrusfb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = cirrusfb_open,
        .fb_release     = cirrusfb_release,
index cabbc721f894f7991886b095f716e77b8d1abc07..c5d15c6db28767d04dd7a0d3ab55fbebd78adabb 100644 (file)
@@ -153,7 +153,7 @@ static int clps711x_fb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops clps711x_fb_ops = {
+static const struct fb_ops clps711x_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = clps711x_fb_setcolreg,
        .fb_check_var   = clps711x_fb_check_var,
index 544946901e8b2b3b3ca2bbf35e8f387db709cddf..5f8b6324d2e8cc13498f59519c4a48f27a53c213 100644 (file)
@@ -269,7 +269,7 @@ static int cobalt_lcdfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
        return 0;
 }
 
-static struct fb_ops cobalt_lcd_fbops = {
+static const struct fb_ops cobalt_lcd_fbops = {
        .owner          = THIS_MODULE,
        .fb_read        = cobalt_lcdfb_read,
        .fb_write       = cobalt_lcdfb_write,
index 9a680ef3ffc3781cb3a1c8b6e889fd69bf800b8e..38b61cdb5ca409c701f0188e4bb20067cb5b7024 100644 (file)
@@ -157,7 +157,7 @@ static int default_vmode __initdata = VMODE_NVRAM;
 static int default_cmode __initdata = CMODE_NVRAM;
 
 
-static struct fb_ops controlfb_ops = {
+static const struct fb_ops controlfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = controlfb_check_var,
        .fb_set_par     = controlfb_set_par,
index 3a2d9ff0aa42feccfd26387debe6364574ec7c58..460826a7ad551d7efdbf9a1ba8a44c6698e6d63b 100644 (file)
@@ -1060,7 +1060,7 @@ static int cyber2000fb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops cyber2000fb_ops = {
+static const struct fb_ops cyber2000fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = cyber2000fb_check_var,
        .fb_set_par     = cyber2000fb_set_par,
index 2d3dcc52fcf3c807ba9d20b83250db8be203ab09..73c3c4c8cc124b59ce5e2ea6e24ebe4bbfcf3761 100644 (file)
@@ -1294,7 +1294,7 @@ static int da8xxfb_set_par(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops da8xx_fb_ops = {
+static const struct fb_ops da8xx_fb_ops = {
        .owner = THIS_MODULE,
        .fb_check_var = fb_check_var,
        .fb_set_par = da8xxfb_set_par,
index 8da517eaa4a3674049971ade3cab8e7a9ed12383..3688f91658482d7aba7b063aa30befd49a2d643c 100644 (file)
 static int dnfb_blank(int blank, struct fb_info *info);
 static void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area);
 
-static struct fb_ops dn_fb_ops = {
+static const struct fb_ops dn_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_blank       = dnfb_blank,
        .fb_fillrect    = cfb_fillrect,
index 51d97ec4f58f9243daab981224e2813c5faf2018..f03f9fb60c2666fa52145dd5ebaad9d2e8562ec6 100644 (file)
@@ -255,7 +255,7 @@ static void efifb_destroy(struct fb_info *info)
        fb_dealloc_cmap(&info->cmap);
 }
 
-static struct fb_ops efifb_ops = {
+static const struct fb_ops efifb_ops = {
        .owner          = THIS_MODULE,
        .fb_destroy     = efifb_destroy,
        .fb_setcolreg   = efifb_setcolreg,
index d04a047094fce6c95b3892eb571be5c19e24658d..cda2ef33742380483e4d1296db7557bd15fe54ce 100644 (file)
@@ -402,7 +402,7 @@ static int ep93xxfb_setcolreg(unsigned int regno, unsigned int red,
        return 0;
 }
 
-static struct fb_ops ep93xxfb_ops = {
+static const struct fb_ops ep93xxfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = ep93xxfb_check_var,
        .fb_set_par     = ep93xxfb_set_par,
index fa62c4dff7d178a3beed8e3ad269fdf8346acbbc..75df6aabac215c7da79dab7678fdedcf43ccdd46 100644 (file)
@@ -644,7 +644,7 @@ int unifb_mmap(struct fb_info *info,
        return vm_iomap_memory(vma, info->fix.smem_start, info->fix.smem_len);
 }
 
-static struct fb_ops unifb_ops = {
+static const struct fb_ops unifb_ops = {
        .fb_read        = fb_sys_read,
        .fb_write       = fb_sys_write,
        .fb_check_var   = unifb_check_var,
index cd2d1db239a2512701c821d69d2c9aabbde92ea3..948b731844334a8e6d746b3fee68dc73439f94e7 100644 (file)
@@ -44,7 +44,7 @@ static int ffb_pan_display(struct fb_var_screeninfo *, struct fb_info *);
  *  Frame buffer operations
  */
 
-static struct fb_ops ffb_ops = {
+static const struct fb_ops ffb_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = ffb_setcolreg,
        .fb_blank               = ffb_blank,
index ac7a4ebfd390e8f589e8a433ce47397b490bd1dd..3b727d528fde9eb562a9a5e3fa71316d8fb4417d 100644 (file)
@@ -165,7 +165,7 @@ static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
                            u_int transp, struct fb_info *info);
 static int fm2fb_blank(int blank, struct fb_info *info);
 
-static struct fb_ops fm2fb_ops = {
+static const struct fb_ops fm2fb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = fm2fb_setcolreg,
        .fb_blank       = fm2fb_blank,
index d19f58263b4e0331447cde0c7b0ab60c76b70950..7cacabdd5f1221a834ed9ea380e8a77087d127ff 100644 (file)
@@ -1448,7 +1448,7 @@ static int fsl_diu_release(struct fb_info *info, int user)
        return res;
 }
 
-static struct fb_ops fsl_diu_ops = {
+static const struct fb_ops fsl_diu_ops = {
        .owner = THIS_MODULE,
        .fb_check_var = fsl_diu_check_var,
        .fb_set_par = fsl_diu_set_par,
index 223896cc5f7d66713f98db315ada5ab364fc7d2b..845b79da2a7c492377068130d27f8bab2a09d194 100644 (file)
@@ -111,7 +111,7 @@ static int g364fb_setcolreg(u_int regno, u_int red, u_int green,
 static int g364fb_cursor(struct fb_info *info, struct fb_cursor *cursor);
 static int g364fb_blank(int blank, struct fb_info *info);
 
-static struct fb_ops g364fb_ops = {
+static const struct fb_ops g364fb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = g364fb_setcolreg,
        .fb_pan_display = g364fb_pan_display,
index b9f6a82a04953ff66962d3742dc6c352c4ecc0fc..31270a8986e8e4b4866b053744b1089b00ce1ccc 100644 (file)
@@ -1044,7 +1044,7 @@ static int gbefb_mmap(struct fb_info *info,
        return 0;
 }
 
-static struct fb_ops gbefb_ops = {
+static const struct fb_ops gbefb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = gbefb_check_var,
        .fb_set_par     = gbefb_set_par,
index 737e472fac141bbc29a1049dca0b9439c37a2e3b..5d34d89fb665346e0688c380aff0854b0bd4db10 100644 (file)
@@ -252,7 +252,7 @@ static int parse_panel_option(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops gx1fb_ops = {
+static const struct fb_ops gx1fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = gx1fb_check_var,
        .fb_set_par     = gx1fb_set_par,
index 435ce2aa4240f781b626386972655e56d7b58d1d..d38a148d4746ff19d740f9cd1f0cd81851099778 100644 (file)
@@ -265,7 +265,7 @@ static int gxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev)
        return 0;
 }
 
-static struct fb_ops gxfb_ops = {
+static const struct fb_ops gxfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = gxfb_check_var,
        .fb_set_par     = gxfb_set_par,
index b0f07d676eb3e8f6afafb02e917ef95c28abc6dd..adc2d9c2395e307affb849ea889b7c05a18ff33a 100644 (file)
@@ -386,7 +386,7 @@ static int lxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev)
        return 0;
 }
 
-static struct fb_ops lxfb_ops = {
+static const struct fb_ops lxfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = lxfb_check_var,
        .fb_set_par     = lxfb_set_par,
index f60ac276703de7415978d01c16d0830883093896..9c83ec3f8e1f82f0d8bebc31ddfe9045450c072b 100644 (file)
@@ -160,7 +160,7 @@ static int goldfish_fb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops goldfish_fb_ops = {
+static const struct fb_ops goldfish_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = goldfish_fb_check_var,
        .fb_set_par     = goldfish_fb_set_par,
index d22e8b0c906d1f02ece9cf8b537a65ab61b98915..07dda03e0957e66a9628c049f752c4ab51d10a6a 100644 (file)
@@ -251,7 +251,7 @@ static int grvga_pan_display(struct fb_var_screeninfo *var,
        return 0;
 }
 
-static struct fb_ops grvga_ops = {
+static const struct fb_ops grvga_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = grvga_check_var,
        .fb_set_par     = grvga_set_par,
index c7502fd8f447ac61457ff4853caa6b86997275ff..13ded3a10708457aa912e87f0ec25c3031f68b03 100644 (file)
@@ -599,7 +599,7 @@ static const struct fb_fix_screeninfo gxt4500_fix = {
        .mmio_len = 0x20000,
 };
 
-static struct fb_ops gxt4500_ops = {
+static const struct fb_ops gxt4500_ops = {
        .owner = THIS_MODULE,
        .fb_check_var = gxt4500_check_var,
        .fb_set_par = gxt4500_set_par,
index 8577195cb533050d4bfe0f6d8ec8c09c984bebec..00d77105161a4006a1cf18d9faf5d93ce2fadeae 100644 (file)
@@ -197,7 +197,7 @@ static ssize_t hecubafb_write(struct fb_info *info, const char __user *buf,
        return (err) ? err : count;
 }
 
-static struct fb_ops hecubafb_ops = {
+static const struct fb_ops hecubafb_ops = {
        .owner          = THIS_MODULE,
        .fb_read        = fb_sys_read,
        .fb_write       = hecubafb_write,
index 59e1cae5794814e387618c66f77ba7cfe715968e..a45fcff1461fb8aef98d8d0a6fc0b790fa54ebeb 100644 (file)
@@ -523,7 +523,7 @@ static void hgafb_imageblit(struct fb_info *info, const struct fb_image *image)
        }
 }
 
-static struct fb_ops hgafb_ops = {
+static const struct fb_ops hgafb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = hgafb_open,
        .fb_release     = hgafb_release,
index abe3e54d45064d6f929c96e369c0c7a3ca78fbb6..009e5d2aa1009bdbcdac5b71d2f46fc3ee08d33c 100644 (file)
@@ -311,7 +311,7 @@ static int hitfb_set_par(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops hitfb_ops = {
+static const struct fb_ops hitfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = hitfb_check_var,
        .fb_set_par             = hitfb_set_par,
index a79af8f069d1649ae1426a86bf514232a20bb7ab..f02be0db335e910ecf72dd6f203343de73b4ad3e 100644 (file)
@@ -184,7 +184,7 @@ static int hpfb_sync(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops hpfb_ops = {
+static const struct fb_ops hpfb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = hpfb_setcolreg,
        .fb_blank       = hpfb_blank,
index 2dcb7c58b31e1d2e915a76b82757bec181bf96ed..fcd546e5c031c3a5928344dddd2f10050a720b3a 100644 (file)
@@ -623,7 +623,7 @@ static void hvfb_cfb_imageblit(struct fb_info *p,
                synthvid_update(p);
 }
 
-static struct fb_ops hvfb_ops = {
+static const struct fb_ops hvfb_ops = {
        .owner = THIS_MODULE,
        .fb_check_var = hvfb_check_var,
        .fb_set_par = hvfb_set_par,
index 347cf8babc3e304f99f3df8e1b52eee4aedf5597..c65ec7386e87b82207d696d24d1add0b131c72a4 100644 (file)
@@ -981,7 +981,7 @@ static int i740fb_blank(int blank_mode, struct fb_info *info)
        return (blank_mode == FB_BLANK_NORMAL) ? 1 : 0;
 }
 
-static struct fb_ops i740fb_ops = {
+static const struct fb_ops i740fb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = i740fb_open,
        .fb_release     = i740fb_release,
index 58b01c7d905600a97c230b5669d981f7d2e83fb8..3ac053b884958e040f8b77587518e993b941c585 100644 (file)
@@ -1333,7 +1333,7 @@ static struct pci_driver imsttfb_pci_driver = {
        .remove =       imsttfb_remove,
 };
 
-static struct fb_ops imsttfb_ops = {
+static const struct fb_ops imsttfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = imsttfb_check_var,
        .fb_set_par     = imsttfb_set_par,
index b3286d1fa5439a3ac4f0675a8c40fd5368dda842..08a17eb2a5c761d4e97d6d31770a86ac86f5048e 100644 (file)
@@ -566,7 +566,7 @@ static int imxfb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops imxfb_ops = {
+static const struct fb_ops imxfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = imxfb_check_var,
        .fb_set_par     = imxfb_set_par,
index a76c61512c6088efa61f5aacdc3bdb4c0aa74896..c744891781a5a27b9236393cfbbc8278f4b575d6 100644 (file)
@@ -193,7 +193,7 @@ static const struct pci_device_id intelfb_pci_table[] = {
 static int num_registered = 0;
 
 /* fb ops */
-static struct fb_ops intel_fb_ops = {
+static const struct fb_ops intel_fb_ops = {
        .owner =                THIS_MODULE,
        .fb_open =              intelfb_open,
        .fb_release =           intelfb_release,
index a7bd9f25911b534d10e23ca1eae7ccac6ba99288..72dff2e42e3ab13c3984f6655aa22f61d122a3c9 100644 (file)
@@ -648,7 +648,7 @@ static struct pci_driver kyrofb_pci_driver = {
        .remove         = kyrofb_remove,
 };
 
-static struct fb_ops kyrofb_ops = {
+static const struct fb_ops kyrofb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = kyrofb_check_var,
        .fb_set_par     = kyrofb_set_par,
index 5b1141ac182b93412cbb70a2dade4a966b87a452..40b11cce0ad6b4e04533c008f693ea361b1cba6d 100644 (file)
@@ -39,7 +39,7 @@ static int leo_pan_display(struct fb_var_screeninfo *, struct fb_info *);
  *  Frame buffer operations
  */
 
-static struct fb_ops leo_ops = {
+static const struct fb_ops leo_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = leo_setcolreg,
        .fb_blank               = leo_blank,
index 9a6feee96133e160fe3bbcb8c0584d4dc6b93d82..e05a97662ca8fbd5b9578af3cdc7733dbf68c054 100644 (file)
@@ -496,7 +496,7 @@ static int macfb_setcolreg(unsigned regno, unsigned red, unsigned green,
        return 0;
 }
 
-static struct fb_ops macfb_ops = {
+static const struct fb_ops macfb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = macfb_setcolreg,
        .fb_fillrect    = cfb_fillrect,
index d2a81a2c3ac0d91d1d5f3f0c45b113050a3a1262..7655afa3fd500b672ff1dae94b59472e5e75528e 100644 (file)
@@ -563,7 +563,7 @@ static int matroxfb_dh_blank(int blank, struct fb_info* info) {
 #undef m2info
 }
 
-static struct fb_ops matroxfb_dh_ops = {
+static const struct fb_ops matroxfb_dh_ops = {
        .owner =        THIS_MODULE,
        .fb_open =      matroxfb_dh_open,
        .fb_release =   matroxfb_dh_release,
index 5bb1b5c308a775d4f35c83b2ed243e0996e7146e..ae1a42bcb0ead38c25788c0f4ef767ea64cb57b0 100644 (file)
@@ -105,7 +105,7 @@ static int maxinefb_setcolreg(unsigned regno, unsigned red, unsigned green,
        return 0;
 }
 
-static struct fb_ops maxinefb_ops = {
+static const struct fb_ops maxinefb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = maxinefb_setcolreg,
        .fb_fillrect    = cfb_fillrect,
index 50935252b50b6602a720460988cca0e71b06f4c3..25dad4507d777da9306d1ecca482f9c16ac13e1d 100644 (file)
@@ -671,7 +671,7 @@ static int mbxfb_ioctl(struct fb_info *info, unsigned int cmd,
        return -EINVAL;
 }
 
-static struct fb_ops mbxfb_ops = {
+static const struct fb_ops mbxfb_ops = {
        .owner = THIS_MODULE,
        .fb_check_var = mbxfb_check_var,
        .fb_set_par = mbxfb_set_par,
index bb4fee52e501722c7353d2f81c364bdbc9fb84e3..a42e2eceee48f64aa22cb6ce2aa01e2f398f8cd0 100644 (file)
@@ -558,7 +558,7 @@ static ssize_t metronomefb_write(struct fb_info *info, const char __user *buf,
        return (err) ? err : count;
 }
 
-static struct fb_ops metronomefb_ops = {
+static const struct fb_ops metronomefb_ops = {
        .owner          = THIS_MODULE,
        .fb_write       = metronomefb_write,
        .fb_fillrect    = metronomefb_fillrect,
index 47bc7c59bbd854b917a917e148f03a14701af2f3..33db0850086fe9cc967608d8515ee2be17211cf6 100644 (file)
@@ -454,7 +454,7 @@ static int mmpfb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops mmpfb_ops = {
+static const struct fb_ops mmpfb_ops = {
        .owner          = THIS_MODULE,
        .fb_blank       = mmpfb_blank,
        .fb_check_var   = mmpfb_check_var,
index bafd5f5fac5a4170d1985d177548506cf59d3b78..4af28e4421e5dba8da6c0727d29c3b787d4e5309 100644 (file)
@@ -1249,7 +1249,7 @@ static int mx3fb_pan_display(struct fb_var_screeninfo *var,
  * invoked by the core framebuffer driver to perform operations like
  * blitting, rectangle filling, copy regions and cursor definition.
  */
-static struct fb_ops mx3fb_ops = {
+static const struct fb_ops mx3fb_ops = {
        .owner = THIS_MODULE,
        .fb_set_par = mx3fb_set_par,
        .fb_check_var = mx3fb_check_var,
@@ -1389,7 +1389,8 @@ static int mx3fb_unmap_video_memory(struct fb_info *fbi)
  * mx3fb_init_fbinfo() - initialize framebuffer information object.
  * @return:    initialized framebuffer structure.
  */
-static struct fb_info *mx3fb_init_fbinfo(struct device *dev, struct fb_ops *ops)
+static struct fb_info *mx3fb_init_fbinfo(struct device *dev,
+                                        const struct fb_ops *ops)
 {
        struct fb_info *fbi;
        struct mx3fb_info *mx3fbi;
index b770946a0920602576ca63ed0729a5ed87cbf746..e6ea853c17238b2722848d29dfa8debb10f9e2b9 100644 (file)
@@ -1610,7 +1610,7 @@ neofb_cursor(struct fb_info *info, struct fb_cursor *cursor)
 }
 */
 
-static struct fb_ops neofb_ops = {
+static const struct fb_ops neofb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = neofb_open,
        .fb_release     = neofb_release,
index a970edc2a6f8c781696ac7b0b6664fd7c4513ffa..c8cee2d890dc09082f9cd451755635e0d73d761c 100644 (file)
@@ -285,7 +285,7 @@ static int ocfb_init_var(struct ocfb_dev *fbdev)
        return 0;
 }
 
-static struct fb_ops ocfb_ops = {
+static const struct fb_ops ocfb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = ocfb_setcolreg,
        .fb_fillrect    = cfb_fillrect,
index fbc6eafb63c7799478d8bc9374a5bd2f9c1072d1..5cd0f5f6a4ae733bb7adc750767f66765254925a 100644 (file)
@@ -286,7 +286,7 @@ static void offb_destroy(struct fb_info *info)
        framebuffer_release(info);
 }
 
-static struct fb_ops offb_ops = {
+static const struct fb_ops offb_ops = {
        .owner          = THIS_MODULE,
        .fb_destroy     = offb_destroy,
        .fb_setcolreg   = offb_setcolreg,
index 858c2c011d1934e38f0dcf4612e620e4ec8ac3cb..8dfa9158ba780eee59c46e09ebb8e9234ea65303 100644 (file)
@@ -1280,7 +1280,7 @@ ssize_t omapfb_write(struct fb_info *info, const char __user *buf,
 }
 #endif
 
-static struct fb_ops omapfb_ops = {
+static const struct fb_ops omapfb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = omapfb_open,
        .fb_release     = omapfb_release,
index 8c18cc51aae2cf7ab7765f29bb9470831bdbc33e..6da672e92643b8d4a38682ec29fec31339b2ade9 100644 (file)
@@ -37,7 +37,7 @@ static int p9100_ioctl(struct fb_info *, unsigned int, unsigned long);
  *  Frame buffer operations
  */
 
-static struct fb_ops p9100_ops = {
+static const struct fb_ops p9100_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = p9100_setcolreg,
        .fb_blank               = p9100_blank,
index 632b246ca35f6792304b4adbf037e6f081b82453..ce413a9df06e4be8ca0b6b1915e5548047c616e5 100644 (file)
@@ -96,7 +96,7 @@ static int platinum_var_to_par(struct fb_var_screeninfo *var,
  * Interface used by the world
  */
 
-static struct fb_ops platinumfb_ops = {
+static const struct fb_ops platinumfb_ops = {
        .owner =        THIS_MODULE,
        .fb_check_var   = platinumfb_check_var,
        .fb_set_par     = platinumfb_set_par,
index 1dcf02e12af4f3ee676bd7be8e4f59b71f864c21..8f933bad461c60e6029fc896983e5aee4e6aed2b 100644 (file)
@@ -1483,7 +1483,7 @@ static int pm2fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
  *  Frame buffer operations
  */
 
-static struct fb_ops pm2fb_ops = {
+static const struct fb_ops pm2fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = pm2fb_check_var,
        .fb_set_par     = pm2fb_set_par,
index 6130aa56a1e93239dbad34558ed6273ce155d4e2..15a2b495235b4607fc5c43460e686a1eba064b98 100644 (file)
@@ -1200,7 +1200,7 @@ static int pm3fb_blank(int blank_mode, struct fb_info *info)
         *  Frame buffer operations
         */
 
-static struct fb_ops pm3fb_ops = {
+static const struct fb_ops pm3fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = pm3fb_check_var,
        .fb_set_par     = pm3fb_set_par,
index d1e78ce3a9c2d255dad9a07b493a221e1c99eb54..7b33b52b252669a4f511c299f73d923dbd2e68e6 100644 (file)
@@ -147,7 +147,7 @@ static int aafb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops aafb_ops = {
+static const struct fb_ops aafb_ops = {
        .owner          = THIS_MODULE,
        .fb_blank       = aafb_blank,
        .fb_fillrect    = cfb_fillrect,
index 56b912bb28de622bb8de31cb2b6c84206ade1b8d..a60e56d8980b3f34ce7d20dd4c01eef6d78d8bf9 100644 (file)
@@ -117,7 +117,7 @@ static int pmagbafb_setcolreg(unsigned int regno, unsigned int red,
        return 0;
 }
 
-static struct fb_ops pmagbafb_ops = {
+static const struct fb_ops pmagbafb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = pmagbafb_setcolreg,
        .fb_fillrect    = cfb_fillrect,
index 2822b2225924e29f8e38c16f9c88e9676c24cf6d..f02080f21077b27b6c92885c1f09fd2312dfac25 100644 (file)
@@ -121,7 +121,7 @@ static int pmagbbfb_setcolreg(unsigned int regno, unsigned int red,
        return 0;
 }
 
-static struct fb_ops pmagbbfb_ops = {
+static const struct fb_ops pmagbbfb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = pmagbbfb_setcolreg,
        .fb_fillrect    = cfb_fillrect,
index 5ed2db39d8236f2896021a190a36bfc4871e206a..834f63edf700dd006b2ae3ce1632dd35dcbec197 100644 (file)
@@ -934,7 +934,7 @@ static irqreturn_t ps3fb_vsync_interrupt(int irq, void *ptr)
 }
 
 
-static struct fb_ops ps3fb_ops = {
+static const struct fb_ops ps3fb_ops = {
        .fb_open        = ps3fb_open,
        .fb_release     = ps3fb_release,
        .fb_read        = fb_sys_read,
index 0a3b2b7c789125a63855354fb2200f427e39416e..fcb16eabbb0d6508f155fd5d7f9a5aaf3912167e 100644 (file)
@@ -707,7 +707,7 @@ out_unmap:
 }
 #endif /* CONFIG_PVR2_DMA */
 
-static struct fb_ops pvr2fb_ops = {
+static const struct fb_ops pvr2fb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = pvr2fb_setcolreg,
        .fb_blank       = pvr2fb_blank,
index 1410f476e135d99aa1d5a16277e31c42908a3f85..c672c3354a2c902181a8980ccb809a1b330ba5e1 100644 (file)
@@ -545,7 +545,7 @@ static irqreturn_t pxa168fb_handle_irq(int irq, void *dev_id)
        return IRQ_NONE;
 }
 
-static struct fb_ops pxa168fb_ops = {
+static const struct fb_ops pxa168fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = pxa168fb_check_var,
        .fb_set_par     = pxa168fb_set_par,
index f70c9f79622ec8e1107f196427daed1bc27e96e3..6f7e9fb631903c42f1f99219a9521e751d14b3c7 100644 (file)
@@ -597,7 +597,7 @@ static int pxafb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops pxafb_ops = {
+static const struct fb_ops pxafb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = pxafb_check_var,
        .fb_set_par     = pxafb_set_par,
@@ -865,7 +865,7 @@ static int overlayfb_set_par(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops overlay_fb_ops = {
+static const struct fb_ops overlay_fb_ops = {
        .owner                  = THIS_MODULE,
        .fb_open                = overlayfb_open,
        .fb_release             = overlayfb_release,
index 0b93aa964d435a23836e1a29a01e540a54dc0de8..79ff14a35c85a31c3fc0202c5084571629f2c253 100644 (file)
@@ -75,7 +75,7 @@ static int q40fb_setcolreg(unsigned regno, unsigned red, unsigned green,
     return 0;
 }
 
-static struct fb_ops q40fb_ops = {
+static const struct fb_ops q40fb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = q40fb_setcolreg,
        .fb_fillrect    = cfb_fillrect,
index ca593a3e41d74e18e0f37148d57a642e28ba2c2d..764ec3285e6225366a05fc823fc28e772acbb9d1 100644 (file)
@@ -1673,7 +1673,7 @@ static int rivafb_sync(struct fb_info *info)
  * ------------------------------------------------------------------------- */
 
 /* kernel interface */
-static struct fb_ops riva_fb_ops = {
+static const struct fb_ops riva_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = rivafb_open,
        .fb_release     = rivafb_release,
index ba04d7a67829fcbe6c5243255fb693235c60d501..f4871c430f8da2c0e9f49f107c6b97df760206cc 100644 (file)
@@ -1035,7 +1035,7 @@ static int s3c_fb_ioctl(struct fb_info *info, unsigned int cmd,
        return ret;
 }
 
-static struct fb_ops s3c_fb_ops = {
+static const struct fb_ops s3c_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = s3c_fb_check_var,
        .fb_set_par     = s3c_fb_set_par,
index a702da89910bdafae20d3086be36704909302897..2fb15a5401672bfbbec7823a3780ded8920db0fb 100644 (file)
@@ -618,7 +618,7 @@ static int s3c2410fb_debug_store(struct device *dev,
 
 static DEVICE_ATTR(debug, 0664, s3c2410fb_debug_show, s3c2410fb_debug_store);
 
-static struct fb_ops s3c2410fb_ops = {
+static const struct fb_ops s3c2410fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = s3c2410fb_check_var,
        .fb_set_par     = s3c2410fb_set_par,
index be16c349c10f827e0bc0d0f2caa16c294b082df0..60c424fae9883527425aa9675ed0c002cd6a6974 100644 (file)
@@ -1037,7 +1037,7 @@ static int s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
 
 /* Frame buffer operations */
 
-static struct fb_ops s3fb_ops = {
+static const struct fb_ops s3fb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = s3fb_open,
        .fb_release     = s3fb_release,
index 81ad3aa1ca06a46352412dc7722d9eab8bab1658..4680cc3efb81d445e269c978af6af71909c66f6c 100644 (file)
@@ -574,7 +574,7 @@ static int sa1100fb_mmap(struct fb_info *info,
        return vm_iomap_memory(vma, info->fix.mmio_start, info->fix.mmio_len);
 }
 
-static struct fb_ops sa1100fb_ops = {
+static const struct fb_ops sa1100fb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = sa1100fb_check_var,
        .fb_set_par     = sa1100fb_set_par,
index 512789f5f8848b0a9c3df4b73ac9d3bafc691439..aab312a7d9da3fa837394069bfcfaac32705949a 100644 (file)
@@ -1637,7 +1637,7 @@ static int savagefb_release(struct fb_info *info, int user)
        return 0;
 }
 
-static struct fb_ops savagefb_ops = {
+static const struct fb_ops savagefb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = savagefb_open,
        .fb_release     = savagefb_release,
index ab8fe838c7763fac194884767c072b2e08b59b76..b8ec8d9bb4c8e6433a982b44dbc2596c41ac03e8 100644 (file)
@@ -341,7 +341,7 @@ static int sh7760fb_set_par(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops sh7760fb_ops = {
+static const struct fb_ops sh7760fb_ops = {
        .owner = THIS_MODULE,
        .fb_blank = sh7760fb_blank,
        .fb_check_var = sh7760fb_check_var,
index c249763dbf0bf527f584fbe86fea3f1f83838495..25f119efebc0a7e7af107cd8219f30b9c594babc 100644 (file)
@@ -1490,7 +1490,7 @@ sh_mobile_lcdc_overlay_mmap(struct fb_info *info, struct vm_area_struct *vma)
                                 ovl->dma_handle, ovl->fb_size);
 }
 
-static struct fb_ops sh_mobile_lcdc_overlay_ops = {
+static const struct fb_ops sh_mobile_lcdc_overlay_ops = {
        .owner          = THIS_MODULE,
        .fb_read        = fb_sys_read,
        .fb_write       = fb_sys_write,
@@ -1964,7 +1964,7 @@ sh_mobile_lcdc_mmap(struct fb_info *info, struct vm_area_struct *vma)
                                 ch->dma_handle, ch->fb_size);
 }
 
-static struct fb_ops sh_mobile_lcdc_ops = {
+static const struct fb_ops sh_mobile_lcdc_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = sh_mobile_lcdc_setcolreg,
        .fb_read        = fb_sys_read,
index 7dc0105f700d6b59a71400a83d48b0adc093bae7..533a047d07a237ab7aef64c486a43baf55c899ac 100644 (file)
@@ -78,7 +78,7 @@ static void simplefb_destroy(struct fb_info *info)
                iounmap(info->screen_base);
 }
 
-static struct fb_ops simplefb_ops = {
+static const struct fb_ops simplefb_ops = {
        .owner          = THIS_MODULE,
        .fb_destroy     = simplefb_destroy,
        .fb_setcolreg   = simplefb_setcolreg,
index b443a8ed460038876bcc60af789c02abd37c7927..ac140962b1bfba035238750f96404a1cb5a2b414 100644 (file)
@@ -1906,7 +1906,7 @@ sisfb_get_fix(struct fb_fix_screeninfo *fix, int con, struct fb_info *info)
 
 /* ----------------  fb_ops structures ----------------- */
 
-static struct fb_ops sisfb_ops = {
+static const struct fb_ops sisfb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = sisfb_open,
        .fb_release     = sisfb_release,
index 812a36cb60c3efa932a7d305a7d111a5cd49ed3a..bcacfb6934fa9a02c90a8bdca928b1544a102f13 100644 (file)
@@ -634,7 +634,7 @@ int xxxfb_sync(struct fb_info *info)
      *  Frame buffer operations
      */
 
-static struct fb_ops xxxfb_ops = {
+static const struct fb_ops xxxfb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = xxxfb_open,
        .fb_read        = xxxfb_read,
index 207d0add684b54c1c04d68b8f17e6edb1107e5c7..6a1b4a853d9ee070b474708b20e5c4d3fb72bd2c 100644 (file)
@@ -1369,7 +1369,7 @@ static int smtc_set_par(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops smtcfb_ops = {
+static const struct fb_ops smtcfb_ops = {
        .owner        = THIS_MODULE,
        .fb_check_var = smtc_check_var,
        .fb_set_par   = smtc_set_par,
index e362d7da87fc5164dc4b446b8428c3e55a2a3cb8..bfac3ee4a64228160adc5d11e85e66e7b7bcf9a8 100644 (file)
@@ -1268,7 +1268,7 @@ static int ufx_ops_blank(int blank_mode, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops ufx_ops = {
+static const struct fb_ops ufx_ops = {
        .owner = THIS_MODULE,
        .fb_read = fb_sys_read,
        .fb_write = ufx_ops_write,
index 78ca7ffc40c2b2843f1bda10c2b7742b3bcf5f99..142535267fec1490b2fa12ebe45e5f2d87c2ca90 100644 (file)
@@ -280,7 +280,7 @@ static void ssd1307fb_imageblit(struct fb_info *info, const struct fb_image *ima
        ssd1307fb_update_display(par);
 }
 
-static struct fb_ops ssd1307fb_ops = {
+static const struct fb_ops ssd1307fb_ops = {
        .owner          = THIS_MODULE,
        .fb_read        = fb_sys_read,
        .fb_write       = ssd1307fb_write,
index 4e22ae383c87ede1f0918d238229b6198ef3f337..82e707a48e4ea5e78f38c6a09f02353c709d89a5 100644 (file)
@@ -1307,7 +1307,7 @@ static int sstfb_setup(char *options)
 }
 
 
-static struct fb_ops sstfb_ops = {
+static const struct fb_ops sstfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = sstfb_check_var,
        .fb_set_par     = sstfb_set_par,
index 9e88e3f594c29c4d4a0c7362500b494fbf0ca2db..5400ab79fbbd5bc3e82bb3e5ce11d34a1bc7b18a 100644 (file)
@@ -1101,7 +1101,7 @@ stifb_init_display(struct stifb_info *fb)
 
 /* ------------ Interfaces to hardware functions ------------ */
 
-static struct fb_ops stifb_ops = {
+static const struct fb_ops stifb_ops = {
        .owner          = THIS_MODULE,
        .fb_setcolreg   = stifb_setcolreg,
        .fb_blank       = stifb_blank,
index 784c9bd5d5021496321af97dbbcbe2ec62a4c436..15b079505a0006409bffd8d950b0a0ddf47f41f2 100644 (file)
@@ -59,7 +59,7 @@ static int gfb_setcolreg(unsigned regno,
        return 0;
 }
 
-static struct fb_ops gfb_ops = {
+static const struct fb_ops gfb_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = gfb_setcolreg,
        .fb_fillrect            = cfb_fillrect,
index 31683e5a8b79eb56a773949e74bd4ab6ae100e3d..1d3bacd9d5acd80f916829b5a83970b1fd8993aa 100644 (file)
@@ -63,7 +63,7 @@ static int s3d_setcolreg(unsigned regno,
        return 0;
 }
 
-static struct fb_ops s3d_ops = {
+static const struct fb_ops s3d_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = s3d_setcolreg,
        .fb_fillrect            = cfb_fillrect,
index d392976126a6979cf1fedb205a76871c483cc350..9daf17b111065761d456f1b0dca70ff4618eeff4 100644 (file)
@@ -186,7 +186,7 @@ static void e3d_copyarea(struct fb_info *info, const struct fb_copyarea *area)
        spin_unlock_irqrestore(&ep->lock, flags);
 }
 
-static struct fb_ops e3d_ops = {
+static const struct fb_ops e3d_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = e3d_setcolreg,
        .fb_fillrect            = e3d_fillrect,
index 7897f86fb23e70630f61c8679d5eadfe0bb51080..34b2e5b6e84a13d68760b069892c4011b53f55b4 100644 (file)
@@ -40,7 +40,7 @@ static int tcx_pan_display(struct fb_var_screeninfo *, struct fb_info *);
  *  Frame buffer operations
  */
 
-static struct fb_ops tcx_ops = {
+static const struct fb_ops tcx_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = tcx_setcolreg,
        .fb_blank               = tcx_blank,
index fdbb1ea66e6cd43c4a37cb8a2ee7fc2f8053d367..0349cf69652fd48eb443d4aef10760cd1eefc81a 100644 (file)
@@ -1141,7 +1141,7 @@ static int tdfxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
        return 0;
 }
 
-static struct fb_ops tdfxfb_ops = {
+static const struct fb_ops tdfxfb_ops = {
        .owner          = THIS_MODULE,
        .fb_check_var   = tdfxfb_check_var,
        .fb_set_par     = tdfxfb_set_par,
index 286b2371c7dd3bb09d6c88dbc6788cee92f1614a..7cd26285824182e1f085a04b10f15739d5164219 100644 (file)
@@ -70,7 +70,7 @@ static struct tc_driver tgafb_tc_driver;
  *  Frame buffer operations
  */
 
-static struct fb_ops tgafb_ops = {
+static const struct fb_ops tgafb_ops = {
        .owner                  = THIS_MODULE,
        .fb_check_var           = tgafb_check_var,
        .fb_set_par             = tgafb_set_par,
index 4f2fcea10d2b44a63b54babb97383dd4a878173e..50111966c9816c28232badc6d43fa3f227351cb2 100644 (file)
@@ -646,7 +646,7 @@ static int tmiofb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops tmiofb_ops = {
+static const struct fb_ops tmiofb_ops = {
        .owner          = THIS_MODULE,
 
        .fb_ioctl       = tmiofb_ioctl,
index da74bf6c5996390b84dd5b70a02f439dfcab0ee5..715509917eaa318bc95eeff9403b78f03d337c82 100644 (file)
@@ -1443,7 +1443,7 @@ static int tridentfb_blank(int blank_mode, struct fb_info *info)
        return (blank_mode == FB_BLANK_NORMAL) ? 1 : 0;
 }
 
-static struct fb_ops tridentfb_ops = {
+static const struct fb_ops tridentfb_ops = {
        .owner = THIS_MODULE,
        .fb_setcolreg = tridentfb_setcolreg,
        .fb_pan_display = tridentfb_pan_display,
index e04fde9c1fcdeaca9300c365d8d39a76cb463071..ca8d7343aaa1d07a93019c851e98b406a1ffdea6 100644 (file)
@@ -113,7 +113,7 @@ static int valkyrie_init_info(struct fb_info *info, struct fb_info_valkyrie *p);
 static void valkyrie_par_to_fix(struct fb_par_valkyrie *par, struct fb_fix_screeninfo *fix);
 static void valkyrie_init_fix(struct fb_fix_screeninfo *fix, struct fb_info_valkyrie *p);
 
-static struct fb_ops valkyriefb_ops = {
+static const struct fb_ops valkyriefb_ops = {
        .owner =        THIS_MODULE,
        .fb_check_var = valkyriefb_check_var,
        .fb_set_par =   valkyriefb_set_par,
index 54127905bfe7473d6e034be066291d7fc71f29fe..95d3c59867d0a650f3fffa92d009709fcba732c2 100644 (file)
@@ -78,7 +78,7 @@ static int vfb_pan_display(struct fb_var_screeninfo *var,
 static int vfb_mmap(struct fb_info *info,
                    struct vm_area_struct *vma);
 
-static struct fb_ops vfb_ops = {
+static const struct fb_ops vfb_ops = {
        .fb_read        = fb_sys_read,
        .fb_write       = fb_sys_write,
        .fb_check_var   = vfb_check_var,
index 2c6a576ed84c72851db228b38e6d3aedfee8d67a..a20eeb8308ffd3047e3d4ce61d003d5aee0b2c95 100644 (file)
@@ -1270,7 +1270,7 @@ static void vga16fb_destroy(struct fb_info *info)
        framebuffer_release(info);
 }
 
-static struct fb_ops vga16fb_ops = {
+static const struct fb_ops vga16fb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = vga16fb_open,
        .fb_release     = vga16fb_release,
index be8d9702cbb2d55acfedcef9180778a2f5332c9c..f744479dc7df63356af8f399ddabda40193cd748 100644 (file)
@@ -238,7 +238,7 @@ static int vt8500lcd_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops vt8500lcd_ops = {
+static const struct fb_ops vt8500lcd_ops = {
        .owner          = THIS_MODULE,
        .fb_set_par     = vt8500lcd_set_par,
        .fb_setcolreg   = vt8500lcd_setcolreg,
index c339a8fbad81f6c2a0bd1f14ac8b872946f1124e..7b3eef1b893f702b5520b0af392be5e578bca73f 100644 (file)
@@ -634,7 +634,7 @@ static int vt8623fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *i
 
 /* Frame buffer operations */
 
-static struct fb_ops vt8623fb_ops = {
+static const struct fb_ops vt8623fb_ops = {
        .owner          = THIS_MODULE,
        .fb_open        = vt8623fb_open,
        .fb_release     = vt8623fb_release,
index 3be07807edcdfeeb75e667ea17d8db8fbe0e7c57..fe628ec20149411871f519c3186d34618cff5072 100644 (file)
@@ -549,7 +549,7 @@ static int w100fb_set_par(struct fb_info *info)
 /*
  *  Frame buffer operations
  */
-static struct fb_ops w100fb_ops = {
+static const struct fb_ops w100fb_ops = {
        .owner        = THIS_MODULE,
        .fb_check_var = w100fb_check_var,
        .fb_set_par   = w100fb_set_par,
index 17c780315ca573fd85a7432c0067ff0068f723c0..b656eff58c2376a4bd7e53385ab741414d88fdf4 100644 (file)
@@ -246,7 +246,7 @@ static int wm8505fb_blank(int blank, struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops wm8505fb_ops = {
+static const struct fb_ops wm8505fb_ops = {
        .owner          = THIS_MODULE,
        .fb_set_par     = wm8505fb_set_par,
        .fb_setcolreg   = wm8505fb_setcolreg,
index a3d6b6db221b0ba11dcfbc363e2b75e25991ef28..00307b8693bf567925521cde6ea8b4e65ff9b4aa 100644 (file)
@@ -328,7 +328,7 @@ static int xenfb_set_par(struct fb_info *info)
        return 0;
 }
 
-static struct fb_ops xenfb_fb_ops = {
+static const struct fb_ops xenfb_fb_ops = {
        .owner          = THIS_MODULE,
        .fb_read        = fb_sys_read,
        .fb_write       = xenfb_write,
index 8628829b470df5b39c98e9329cd7e4d1fca1c7ac..ca4ff658cad041230b664cd698436689b30483bf 100644 (file)
@@ -247,7 +247,7 @@ xilinx_fb_blank(int blank_mode, struct fb_info *fbi)
        return 0; /* success */
 }
 
-static struct fb_ops xilinxfb_ops = {
+static const struct fb_ops xilinxfb_ops = {
        .owner                  = THIS_MODULE,
        .fb_setcolreg           = xilinx_fb_setcolreg,
        .fb_blank               = xilinx_fb_blank,