Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: constify fb ops across all drivers

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

+111 -110
+1 -1
drivers/video/fbdev/68328fb.c
··· 96 96 struct fb_info *info); 97 97 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma); 98 98 99 - static struct fb_ops mc68x328fb_ops = { 99 + static const struct fb_ops mc68x328fb_ops = { 100 100 .fb_check_var = mc68x328fb_check_var, 101 101 .fb_set_par = mc68x328fb_set_par, 102 102 .fb_setcolreg = mc68x328fb_setcolreg,
+1 -1
drivers/video/fbdev/acornfb.c
··· 604 604 return 0; 605 605 } 606 606 607 - static struct fb_ops acornfb_ops = { 607 + static const struct fb_ops acornfb_ops = { 608 608 .owner = THIS_MODULE, 609 609 .fb_check_var = acornfb_check_var, 610 610 .fb_set_par = acornfb_set_par,
+1 -1
drivers/video/fbdev/amba-clcd.c
··· 423 423 return ret; 424 424 } 425 425 426 - static struct fb_ops clcdfb_ops = { 426 + static const struct fb_ops clcdfb_ops = { 427 427 .owner = THIS_MODULE, 428 428 .fb_check_var = clcdfb_check_var, 429 429 .fb_set_par = clcdfb_set_par,
+1 -1
drivers/video/fbdev/amifb.c
··· 3493 3493 } 3494 3494 3495 3495 3496 - static struct fb_ops amifb_ops = { 3496 + static const struct fb_ops amifb_ops = { 3497 3497 .owner = THIS_MODULE, 3498 3498 .fb_check_var = amifb_check_var, 3499 3499 .fb_set_par = amifb_set_par,
+1 -1
drivers/video/fbdev/arcfb.c
··· 491 491 return err; 492 492 } 493 493 494 - static struct fb_ops arcfb_ops = { 494 + static const struct fb_ops arcfb_ops = { 495 495 .owner = THIS_MODULE, 496 496 .fb_open = arcfb_open, 497 497 .fb_read = fb_sys_read,
+1 -1
drivers/video/fbdev/arkfb.c
··· 917 917 918 918 /* Frame buffer operations */ 919 919 920 - static struct fb_ops arkfb_ops = { 920 + static const struct fb_ops arkfb_ops = { 921 921 .owner = THIS_MODULE, 922 922 .fb_open = arkfb_open, 923 923 .fb_release = arkfb_release,
+1 -1
drivers/video/fbdev/asiliantfb.c
··· 95 95 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 96 96 u_int transp, struct fb_info *info); 97 97 98 - static struct fb_ops asiliantfb_ops = { 98 + static const struct fb_ops asiliantfb_ops = { 99 99 .owner = THIS_MODULE, 100 100 .fb_check_var = asiliantfb_check_var, 101 101 .fb_set_par = asiliantfb_set_par,
+1 -1
drivers/video/fbdev/atmel_lcdfb.c
··· 824 824 return ((blank_mode == FB_BLANK_NORMAL) ? 1 : 0); 825 825 } 826 826 827 - static struct fb_ops atmel_lcdfb_ops = { 827 + static const struct fb_ops atmel_lcdfb_ops = { 828 828 .owner = THIS_MODULE, 829 829 .fb_check_var = atmel_lcdfb_check_var, 830 830 .fb_set_par = atmel_lcdfb_set_par,
+1 -1
drivers/video/fbdev/aty/aty128fb.c
··· 509 509 (readb(bios + (v) + 3) << 24)) 510 510 511 511 512 - static struct fb_ops aty128fb_ops = { 512 + static const struct fb_ops aty128fb_ops = { 513 513 .owner = THIS_MODULE, 514 514 .fb_check_var = aty128fb_check_var, 515 515 .fb_set_par = aty128fb_set_par,
+1 -1
drivers/video/fbdev/aty/radeon_base.c
··· 1965 1965 } 1966 1966 1967 1967 1968 - static struct fb_ops radeonfb_ops = { 1968 + static const struct fb_ops radeonfb_ops = { 1969 1969 .owner = THIS_MODULE, 1970 1970 .fb_check_var = radeonfb_check_var, 1971 1971 .fb_set_par = radeonfb_set_par,
+1 -1
drivers/video/fbdev/au1100fb.c
··· 348 348 fbdev->fb_len); 349 349 } 350 350 351 - static struct fb_ops au1100fb_ops = 351 + static const struct fb_ops au1100fb_ops = 352 352 { 353 353 .owner = THIS_MODULE, 354 354 .fb_setcolreg = au1100fb_fb_setcolreg,
+1 -1
drivers/video/fbdev/au1200fb.c
··· 1483 1483 } 1484 1484 1485 1485 1486 - static struct fb_ops au1200fb_fb_ops = { 1486 + static const struct fb_ops au1200fb_fb_ops = { 1487 1487 .owner = THIS_MODULE, 1488 1488 .fb_check_var = au1200fb_fb_check_var, 1489 1489 .fb_set_par = au1200fb_fb_set_par,
+1 -1
drivers/video/fbdev/broadsheetfb.c
··· 1048 1048 return (err) ? err : count; 1049 1049 } 1050 1050 1051 - static struct fb_ops broadsheetfb_ops = { 1051 + static const struct fb_ops broadsheetfb_ops = { 1052 1052 .owner = THIS_MODULE, 1053 1053 .fb_read = fb_sys_read, 1054 1054 .fb_write = broadsheetfb_write,
+1 -1
drivers/video/fbdev/bw2.c
··· 37 37 * Frame buffer operations 38 38 */ 39 39 40 - static struct fb_ops bw2_ops = { 40 + static const struct fb_ops bw2_ops = { 41 41 .owner = THIS_MODULE, 42 42 .fb_blank = bw2_blank, 43 43 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/carminefb.c
··· 527 527 return 0; 528 528 } 529 529 530 - static struct fb_ops carminefb_ops = { 530 + static const struct fb_ops carminefb_ops = { 531 531 .owner = THIS_MODULE, 532 532 .fb_fillrect = cfb_fillrect, 533 533 .fb_copyarea = cfb_copyarea,
+1 -1
drivers/video/fbdev/cg14.c
··· 39 39 * Frame buffer operations 40 40 */ 41 41 42 - static struct fb_ops cg14_ops = { 42 + static const struct fb_ops cg14_ops = { 43 43 .owner = THIS_MODULE, 44 44 .fb_setcolreg = cg14_setcolreg, 45 45 .fb_pan_display = cg14_pan_display,
+1 -1
drivers/video/fbdev/cg3.c
··· 39 39 * Frame buffer operations 40 40 */ 41 41 42 - static struct fb_ops cg3_ops = { 42 + static const struct fb_ops cg3_ops = { 43 43 .owner = THIS_MODULE, 44 44 .fb_setcolreg = cg3_setcolreg, 45 45 .fb_blank = cg3_blank,
+1 -1
drivers/video/fbdev/cg6.c
··· 44 44 * Frame buffer operations 45 45 */ 46 46 47 - static struct fb_ops cg6_ops = { 47 + static const struct fb_ops cg6_ops = { 48 48 .owner = THIS_MODULE, 49 49 .fb_setcolreg = cg6_setcolreg, 50 50 .fb_blank = cg6_blank,
+1 -1
drivers/video/fbdev/chipsfb.c
··· 79 79 u_int transp, struct fb_info *info); 80 80 static int chipsfb_blank(int blank, struct fb_info *info); 81 81 82 - static struct fb_ops chipsfb_ops = { 82 + static const struct fb_ops chipsfb_ops = { 83 83 .owner = THIS_MODULE, 84 84 .fb_check_var = chipsfb_check_var, 85 85 .fb_set_par = chipsfb_set_par,
+1 -1
drivers/video/fbdev/cirrusfb.c
··· 1956 1956 #endif /* CONFIG_ZORRO */ 1957 1957 1958 1958 /* function table of the above functions */ 1959 - static struct fb_ops cirrusfb_ops = { 1959 + static const struct fb_ops cirrusfb_ops = { 1960 1960 .owner = THIS_MODULE, 1961 1961 .fb_open = cirrusfb_open, 1962 1962 .fb_release = cirrusfb_release,
+1 -1
drivers/video/fbdev/clps711x-fb.c
··· 153 153 return 0; 154 154 } 155 155 156 - static struct fb_ops clps711x_fb_ops = { 156 + static const struct fb_ops clps711x_fb_ops = { 157 157 .owner = THIS_MODULE, 158 158 .fb_setcolreg = clps711x_fb_setcolreg, 159 159 .fb_check_var = clps711x_fb_check_var,
+1 -1
drivers/video/fbdev/cobalt_lcdfb.c
··· 269 269 return 0; 270 270 } 271 271 272 - static struct fb_ops cobalt_lcd_fbops = { 272 + static const struct fb_ops cobalt_lcd_fbops = { 273 273 .owner = THIS_MODULE, 274 274 .fb_read = cobalt_lcdfb_read, 275 275 .fb_write = cobalt_lcdfb_write,
+1 -1
drivers/video/fbdev/controlfb.c
··· 157 157 static int default_cmode __initdata = CMODE_NVRAM; 158 158 159 159 160 - static struct fb_ops controlfb_ops = { 160 + static const struct fb_ops controlfb_ops = { 161 161 .owner = THIS_MODULE, 162 162 .fb_check_var = controlfb_check_var, 163 163 .fb_set_par = controlfb_set_par,
+1 -1
drivers/video/fbdev/cyber2000fb.c
··· 1060 1060 return 0; 1061 1061 } 1062 1062 1063 - static struct fb_ops cyber2000fb_ops = { 1063 + static const struct fb_ops cyber2000fb_ops = { 1064 1064 .owner = THIS_MODULE, 1065 1065 .fb_check_var = cyber2000fb_check_var, 1066 1066 .fb_set_par = cyber2000fb_set_par,
+1 -1
drivers/video/fbdev/da8xx-fb.c
··· 1294 1294 return 0; 1295 1295 } 1296 1296 1297 - static struct fb_ops da8xx_fb_ops = { 1297 + static const struct fb_ops da8xx_fb_ops = { 1298 1298 .owner = THIS_MODULE, 1299 1299 .fb_check_var = fb_check_var, 1300 1300 .fb_set_par = da8xxfb_set_par,
+1 -1
drivers/video/fbdev/dnfb.c
··· 108 108 static int dnfb_blank(int blank, struct fb_info *info); 109 109 static void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area); 110 110 111 - static struct fb_ops dn_fb_ops = { 111 + static const struct fb_ops dn_fb_ops = { 112 112 .owner = THIS_MODULE, 113 113 .fb_blank = dnfb_blank, 114 114 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/efifb.c
··· 255 255 fb_dealloc_cmap(&info->cmap); 256 256 } 257 257 258 - static struct fb_ops efifb_ops = { 258 + static const struct fb_ops efifb_ops = { 259 259 .owner = THIS_MODULE, 260 260 .fb_destroy = efifb_destroy, 261 261 .fb_setcolreg = efifb_setcolreg,
+1 -1
drivers/video/fbdev/ep93xx-fb.c
··· 402 402 return 0; 403 403 } 404 404 405 - static struct fb_ops ep93xxfb_ops = { 405 + static const struct fb_ops ep93xxfb_ops = { 406 406 .owner = THIS_MODULE, 407 407 .fb_check_var = ep93xxfb_check_var, 408 408 .fb_set_par = ep93xxfb_set_par,
+1 -1
drivers/video/fbdev/fb-puv3.c
··· 644 644 return vm_iomap_memory(vma, info->fix.smem_start, info->fix.smem_len); 645 645 } 646 646 647 - static struct fb_ops unifb_ops = { 647 + static const struct fb_ops unifb_ops = { 648 648 .fb_read = fb_sys_read, 649 649 .fb_write = fb_sys_write, 650 650 .fb_check_var = unifb_check_var,
+1 -1
drivers/video/fbdev/ffb.c
··· 44 44 * Frame buffer operations 45 45 */ 46 46 47 - static struct fb_ops ffb_ops = { 47 + static const struct fb_ops ffb_ops = { 48 48 .owner = THIS_MODULE, 49 49 .fb_setcolreg = ffb_setcolreg, 50 50 .fb_blank = ffb_blank,
+1 -1
drivers/video/fbdev/fm2fb.c
··· 165 165 u_int transp, struct fb_info *info); 166 166 static int fm2fb_blank(int blank, struct fb_info *info); 167 167 168 - static struct fb_ops fm2fb_ops = { 168 + static const struct fb_ops fm2fb_ops = { 169 169 .owner = THIS_MODULE, 170 170 .fb_setcolreg = fm2fb_setcolreg, 171 171 .fb_blank = fm2fb_blank,
+1 -1
drivers/video/fbdev/fsl-diu-fb.c
··· 1448 1448 return res; 1449 1449 } 1450 1450 1451 - static struct fb_ops fsl_diu_ops = { 1451 + static const struct fb_ops fsl_diu_ops = { 1452 1452 .owner = THIS_MODULE, 1453 1453 .fb_check_var = fsl_diu_check_var, 1454 1454 .fb_set_par = fsl_diu_set_par,
+1 -1
drivers/video/fbdev/g364fb.c
··· 111 111 static int g364fb_cursor(struct fb_info *info, struct fb_cursor *cursor); 112 112 static int g364fb_blank(int blank, struct fb_info *info); 113 113 114 - static struct fb_ops g364fb_ops = { 114 + static const struct fb_ops g364fb_ops = { 115 115 .owner = THIS_MODULE, 116 116 .fb_setcolreg = g364fb_setcolreg, 117 117 .fb_pan_display = g364fb_pan_display,
+1 -1
drivers/video/fbdev/gbefb.c
··· 1044 1044 return 0; 1045 1045 } 1046 1046 1047 - static struct fb_ops gbefb_ops = { 1047 + static const struct fb_ops gbefb_ops = { 1048 1048 .owner = THIS_MODULE, 1049 1049 .fb_check_var = gbefb_check_var, 1050 1050 .fb_set_par = gbefb_set_par,
+1 -1
drivers/video/fbdev/geode/gx1fb_core.c
··· 252 252 return 0; 253 253 } 254 254 255 - static struct fb_ops gx1fb_ops = { 255 + static const struct fb_ops gx1fb_ops = { 256 256 .owner = THIS_MODULE, 257 257 .fb_check_var = gx1fb_check_var, 258 258 .fb_set_par = gx1fb_set_par,
+1 -1
drivers/video/fbdev/geode/gxfb_core.c
··· 265 265 return 0; 266 266 } 267 267 268 - static struct fb_ops gxfb_ops = { 268 + static const struct fb_ops gxfb_ops = { 269 269 .owner = THIS_MODULE, 270 270 .fb_check_var = gxfb_check_var, 271 271 .fb_set_par = gxfb_set_par,
+1 -1
drivers/video/fbdev/geode/lxfb_core.c
··· 386 386 return 0; 387 387 } 388 388 389 - static struct fb_ops lxfb_ops = { 389 + static const struct fb_ops lxfb_ops = { 390 390 .owner = THIS_MODULE, 391 391 .fb_check_var = lxfb_check_var, 392 392 .fb_set_par = lxfb_set_par,
+1 -1
drivers/video/fbdev/goldfishfb.c
··· 160 160 return 0; 161 161 } 162 162 163 - static struct fb_ops goldfish_fb_ops = { 163 + static const struct fb_ops goldfish_fb_ops = { 164 164 .owner = THIS_MODULE, 165 165 .fb_check_var = goldfish_fb_check_var, 166 166 .fb_set_par = goldfish_fb_set_par,
+1 -1
drivers/video/fbdev/grvga.c
··· 251 251 return 0; 252 252 } 253 253 254 - static struct fb_ops grvga_ops = { 254 + static const struct fb_ops grvga_ops = { 255 255 .owner = THIS_MODULE, 256 256 .fb_check_var = grvga_check_var, 257 257 .fb_set_par = grvga_set_par,
+1 -1
drivers/video/fbdev/gxt4500.c
··· 599 599 .mmio_len = 0x20000, 600 600 }; 601 601 602 - static struct fb_ops gxt4500_ops = { 602 + static const struct fb_ops gxt4500_ops = { 603 603 .owner = THIS_MODULE, 604 604 .fb_check_var = gxt4500_check_var, 605 605 .fb_set_par = gxt4500_set_par,
+1 -1
drivers/video/fbdev/hecubafb.c
··· 197 197 return (err) ? err : count; 198 198 } 199 199 200 - static struct fb_ops hecubafb_ops = { 200 + static const struct fb_ops hecubafb_ops = { 201 201 .owner = THIS_MODULE, 202 202 .fb_read = fb_sys_read, 203 203 .fb_write = hecubafb_write,
+1 -1
drivers/video/fbdev/hgafb.c
··· 523 523 } 524 524 } 525 525 526 - static struct fb_ops hgafb_ops = { 526 + static const struct fb_ops hgafb_ops = { 527 527 .owner = THIS_MODULE, 528 528 .fb_open = hgafb_open, 529 529 .fb_release = hgafb_release,
+1 -1
drivers/video/fbdev/hitfb.c
··· 311 311 return 0; 312 312 } 313 313 314 - static struct fb_ops hitfb_ops = { 314 + static const struct fb_ops hitfb_ops = { 315 315 .owner = THIS_MODULE, 316 316 .fb_check_var = hitfb_check_var, 317 317 .fb_set_par = hitfb_set_par,
+1 -1
drivers/video/fbdev/hpfb.c
··· 184 184 return 0; 185 185 } 186 186 187 - static struct fb_ops hpfb_ops = { 187 + static const struct fb_ops hpfb_ops = { 188 188 .owner = THIS_MODULE, 189 189 .fb_setcolreg = hpfb_setcolreg, 190 190 .fb_blank = hpfb_blank,
+1 -1
drivers/video/fbdev/hyperv_fb.c
··· 623 623 synthvid_update(p); 624 624 } 625 625 626 - static struct fb_ops hvfb_ops = { 626 + static const struct fb_ops hvfb_ops = { 627 627 .owner = THIS_MODULE, 628 628 .fb_check_var = hvfb_check_var, 629 629 .fb_set_par = hvfb_set_par,
+1 -1
drivers/video/fbdev/i740fb.c
··· 981 981 return (blank_mode == FB_BLANK_NORMAL) ? 1 : 0; 982 982 } 983 983 984 - static struct fb_ops i740fb_ops = { 984 + static const struct fb_ops i740fb_ops = { 985 985 .owner = THIS_MODULE, 986 986 .fb_open = i740fb_open, 987 987 .fb_release = i740fb_release,
+1 -1
drivers/video/fbdev/imsttfb.c
··· 1333 1333 .remove = imsttfb_remove, 1334 1334 }; 1335 1335 1336 - static struct fb_ops imsttfb_ops = { 1336 + static const struct fb_ops imsttfb_ops = { 1337 1337 .owner = THIS_MODULE, 1338 1338 .fb_check_var = imsttfb_check_var, 1339 1339 .fb_set_par = imsttfb_set_par,
+1 -1
drivers/video/fbdev/imxfb.c
··· 566 566 return 0; 567 567 } 568 568 569 - static struct fb_ops imxfb_ops = { 569 + static const struct fb_ops imxfb_ops = { 570 570 .owner = THIS_MODULE, 571 571 .fb_check_var = imxfb_check_var, 572 572 .fb_set_par = imxfb_set_par,
+1 -1
drivers/video/fbdev/intelfb/intelfbdrv.c
··· 193 193 static int num_registered = 0; 194 194 195 195 /* fb ops */ 196 - static struct fb_ops intel_fb_ops = { 196 + static const struct fb_ops intel_fb_ops = { 197 197 .owner = THIS_MODULE, 198 198 .fb_open = intelfb_open, 199 199 .fb_release = intelfb_release,
+1 -1
drivers/video/fbdev/kyro/fbdev.c
··· 648 648 .remove = kyrofb_remove, 649 649 }; 650 650 651 - static struct fb_ops kyrofb_ops = { 651 + static const struct fb_ops kyrofb_ops = { 652 652 .owner = THIS_MODULE, 653 653 .fb_check_var = kyrofb_check_var, 654 654 .fb_set_par = kyrofb_set_par,
+1 -1
drivers/video/fbdev/leo.c
··· 39 39 * Frame buffer operations 40 40 */ 41 41 42 - static struct fb_ops leo_ops = { 42 + static const struct fb_ops leo_ops = { 43 43 .owner = THIS_MODULE, 44 44 .fb_setcolreg = leo_setcolreg, 45 45 .fb_blank = leo_blank,
+1 -1
drivers/video/fbdev/macfb.c
··· 496 496 return 0; 497 497 } 498 498 499 - static struct fb_ops macfb_ops = { 499 + static const struct fb_ops macfb_ops = { 500 500 .owner = THIS_MODULE, 501 501 .fb_setcolreg = macfb_setcolreg, 502 502 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/matrox/matroxfb_crtc2.c
··· 563 563 #undef m2info 564 564 } 565 565 566 - static struct fb_ops matroxfb_dh_ops = { 566 + static const struct fb_ops matroxfb_dh_ops = { 567 567 .owner = THIS_MODULE, 568 568 .fb_open = matroxfb_dh_open, 569 569 .fb_release = matroxfb_dh_release,
+1 -1
drivers/video/fbdev/maxinefb.c
··· 105 105 return 0; 106 106 } 107 107 108 - static struct fb_ops maxinefb_ops = { 108 + static const struct fb_ops maxinefb_ops = { 109 109 .owner = THIS_MODULE, 110 110 .fb_setcolreg = maxinefb_setcolreg, 111 111 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/mbx/mbxfb.c
··· 671 671 return -EINVAL; 672 672 } 673 673 674 - static struct fb_ops mbxfb_ops = { 674 + static const struct fb_ops mbxfb_ops = { 675 675 .owner = THIS_MODULE, 676 676 .fb_check_var = mbxfb_check_var, 677 677 .fb_set_par = mbxfb_set_par,
+1 -1
drivers/video/fbdev/metronomefb.c
··· 558 558 return (err) ? err : count; 559 559 } 560 560 561 - static struct fb_ops metronomefb_ops = { 561 + static const struct fb_ops metronomefb_ops = { 562 562 .owner = THIS_MODULE, 563 563 .fb_write = metronomefb_write, 564 564 .fb_fillrect = metronomefb_fillrect,
+1 -1
drivers/video/fbdev/mmp/fb/mmpfb.c
··· 454 454 return 0; 455 455 } 456 456 457 - static struct fb_ops mmpfb_ops = { 457 + static const struct fb_ops mmpfb_ops = { 458 458 .owner = THIS_MODULE, 459 459 .fb_blank = mmpfb_blank, 460 460 .fb_check_var = mmpfb_check_var,
+3 -2
drivers/video/fbdev/mx3fb.c
··· 1249 1249 * invoked by the core framebuffer driver to perform operations like 1250 1250 * blitting, rectangle filling, copy regions and cursor definition. 1251 1251 */ 1252 - static struct fb_ops mx3fb_ops = { 1252 + static const struct fb_ops mx3fb_ops = { 1253 1253 .owner = THIS_MODULE, 1254 1254 .fb_set_par = mx3fb_set_par, 1255 1255 .fb_check_var = mx3fb_check_var, ··· 1389 1389 * mx3fb_init_fbinfo() - initialize framebuffer information object. 1390 1390 * @return: initialized framebuffer structure. 1391 1391 */ 1392 - static struct fb_info *mx3fb_init_fbinfo(struct device *dev, struct fb_ops *ops) 1392 + static struct fb_info *mx3fb_init_fbinfo(struct device *dev, 1393 + const struct fb_ops *ops) 1393 1394 { 1394 1395 struct fb_info *fbi; 1395 1396 struct mx3fb_info *mx3fbi;
+1 -1
drivers/video/fbdev/neofb.c
··· 1610 1610 } 1611 1611 */ 1612 1612 1613 - static struct fb_ops neofb_ops = { 1613 + static const struct fb_ops neofb_ops = { 1614 1614 .owner = THIS_MODULE, 1615 1615 .fb_open = neofb_open, 1616 1616 .fb_release = neofb_release,
+1 -1
drivers/video/fbdev/ocfb.c
··· 285 285 return 0; 286 286 } 287 287 288 - static struct fb_ops ocfb_ops = { 288 + static const struct fb_ops ocfb_ops = { 289 289 .owner = THIS_MODULE, 290 290 .fb_setcolreg = ocfb_setcolreg, 291 291 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/offb.c
··· 286 286 framebuffer_release(info); 287 287 } 288 288 289 - static struct fb_ops offb_ops = { 289 + static const struct fb_ops offb_ops = { 290 290 .owner = THIS_MODULE, 291 291 .fb_destroy = offb_destroy, 292 292 .fb_setcolreg = offb_setcolreg,
+1 -1
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
··· 1280 1280 } 1281 1281 #endif 1282 1282 1283 - static struct fb_ops omapfb_ops = { 1283 + static const struct fb_ops omapfb_ops = { 1284 1284 .owner = THIS_MODULE, 1285 1285 .fb_open = omapfb_open, 1286 1286 .fb_release = omapfb_release,
+1 -1
drivers/video/fbdev/p9100.c
··· 37 37 * Frame buffer operations 38 38 */ 39 39 40 - static struct fb_ops p9100_ops = { 40 + static const struct fb_ops p9100_ops = { 41 41 .owner = THIS_MODULE, 42 42 .fb_setcolreg = p9100_setcolreg, 43 43 .fb_blank = p9100_blank,
+1 -1
drivers/video/fbdev/platinumfb.c
··· 96 96 * Interface used by the world 97 97 */ 98 98 99 - static struct fb_ops platinumfb_ops = { 99 + static const struct fb_ops platinumfb_ops = { 100 100 .owner = THIS_MODULE, 101 101 .fb_check_var = platinumfb_check_var, 102 102 .fb_set_par = platinumfb_set_par,
+1 -1
drivers/video/fbdev/pm2fb.c
··· 1483 1483 * Frame buffer operations 1484 1484 */ 1485 1485 1486 - static struct fb_ops pm2fb_ops = { 1486 + static const struct fb_ops pm2fb_ops = { 1487 1487 .owner = THIS_MODULE, 1488 1488 .fb_check_var = pm2fb_check_var, 1489 1489 .fb_set_par = pm2fb_set_par,
+1 -1
drivers/video/fbdev/pm3fb.c
··· 1200 1200 * Frame buffer operations 1201 1201 */ 1202 1202 1203 - static struct fb_ops pm3fb_ops = { 1203 + static const struct fb_ops pm3fb_ops = { 1204 1204 .owner = THIS_MODULE, 1205 1205 .fb_check_var = pm3fb_check_var, 1206 1206 .fb_set_par = pm3fb_set_par,
+1 -1
drivers/video/fbdev/pmag-aa-fb.c
··· 147 147 return 0; 148 148 } 149 149 150 - static struct fb_ops aafb_ops = { 150 + static const struct fb_ops aafb_ops = { 151 151 .owner = THIS_MODULE, 152 152 .fb_blank = aafb_blank, 153 153 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/pmag-ba-fb.c
··· 117 117 return 0; 118 118 } 119 119 120 - static struct fb_ops pmagbafb_ops = { 120 + static const struct fb_ops pmagbafb_ops = { 121 121 .owner = THIS_MODULE, 122 122 .fb_setcolreg = pmagbafb_setcolreg, 123 123 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/pmagb-b-fb.c
··· 121 121 return 0; 122 122 } 123 123 124 - static struct fb_ops pmagbbfb_ops = { 124 + static const struct fb_ops pmagbbfb_ops = { 125 125 .owner = THIS_MODULE, 126 126 .fb_setcolreg = pmagbbfb_setcolreg, 127 127 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/ps3fb.c
··· 934 934 } 935 935 936 936 937 - static struct fb_ops ps3fb_ops = { 937 + static const struct fb_ops ps3fb_ops = { 938 938 .fb_open = ps3fb_open, 939 939 .fb_release = ps3fb_release, 940 940 .fb_read = fb_sys_read,
+1 -1
drivers/video/fbdev/pvr2fb.c
··· 707 707 } 708 708 #endif /* CONFIG_PVR2_DMA */ 709 709 710 - static struct fb_ops pvr2fb_ops = { 710 + static const struct fb_ops pvr2fb_ops = { 711 711 .owner = THIS_MODULE, 712 712 .fb_setcolreg = pvr2fb_setcolreg, 713 713 .fb_blank = pvr2fb_blank,
+1 -1
drivers/video/fbdev/pxa168fb.c
··· 545 545 return IRQ_NONE; 546 546 } 547 547 548 - static struct fb_ops pxa168fb_ops = { 548 + static const struct fb_ops pxa168fb_ops = { 549 549 .owner = THIS_MODULE, 550 550 .fb_check_var = pxa168fb_check_var, 551 551 .fb_set_par = pxa168fb_set_par,
+2 -2
drivers/video/fbdev/pxafb.c
··· 597 597 return 0; 598 598 } 599 599 600 - static struct fb_ops pxafb_ops = { 600 + static const struct fb_ops pxafb_ops = { 601 601 .owner = THIS_MODULE, 602 602 .fb_check_var = pxafb_check_var, 603 603 .fb_set_par = pxafb_set_par, ··· 865 865 return 0; 866 866 } 867 867 868 - static struct fb_ops overlay_fb_ops = { 868 + static const struct fb_ops overlay_fb_ops = { 869 869 .owner = THIS_MODULE, 870 870 .fb_open = overlayfb_open, 871 871 .fb_release = overlayfb_release,
+1 -1
drivers/video/fbdev/q40fb.c
··· 75 75 return 0; 76 76 } 77 77 78 - static struct fb_ops q40fb_ops = { 78 + static const struct fb_ops q40fb_ops = { 79 79 .owner = THIS_MODULE, 80 80 .fb_setcolreg = q40fb_setcolreg, 81 81 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/riva/fbdev.c
··· 1673 1673 * ------------------------------------------------------------------------- */ 1674 1674 1675 1675 /* kernel interface */ 1676 - static struct fb_ops riva_fb_ops = { 1676 + static const struct fb_ops riva_fb_ops = { 1677 1677 .owner = THIS_MODULE, 1678 1678 .fb_open = rivafb_open, 1679 1679 .fb_release = rivafb_release,
+1 -1
drivers/video/fbdev/s3c-fb.c
··· 1035 1035 return ret; 1036 1036 } 1037 1037 1038 - static struct fb_ops s3c_fb_ops = { 1038 + static const struct fb_ops s3c_fb_ops = { 1039 1039 .owner = THIS_MODULE, 1040 1040 .fb_check_var = s3c_fb_check_var, 1041 1041 .fb_set_par = s3c_fb_set_par,
+1 -1
drivers/video/fbdev/s3c2410fb.c
··· 618 618 619 619 static DEVICE_ATTR(debug, 0664, s3c2410fb_debug_show, s3c2410fb_debug_store); 620 620 621 - static struct fb_ops s3c2410fb_ops = { 621 + static const struct fb_ops s3c2410fb_ops = { 622 622 .owner = THIS_MODULE, 623 623 .fb_check_var = s3c2410fb_check_var, 624 624 .fb_set_par = s3c2410fb_set_par,
+1 -1
drivers/video/fbdev/s3fb.c
··· 1037 1037 1038 1038 /* Frame buffer operations */ 1039 1039 1040 - static struct fb_ops s3fb_ops = { 1040 + static const struct fb_ops s3fb_ops = { 1041 1041 .owner = THIS_MODULE, 1042 1042 .fb_open = s3fb_open, 1043 1043 .fb_release = s3fb_release,
+1 -1
drivers/video/fbdev/sa1100fb.c
··· 574 574 return vm_iomap_memory(vma, info->fix.mmio_start, info->fix.mmio_len); 575 575 } 576 576 577 - static struct fb_ops sa1100fb_ops = { 577 + static const struct fb_ops sa1100fb_ops = { 578 578 .owner = THIS_MODULE, 579 579 .fb_check_var = sa1100fb_check_var, 580 580 .fb_set_par = sa1100fb_set_par,
+1 -1
drivers/video/fbdev/savage/savagefb_driver.c
··· 1637 1637 return 0; 1638 1638 } 1639 1639 1640 - static struct fb_ops savagefb_ops = { 1640 + static const struct fb_ops savagefb_ops = { 1641 1641 .owner = THIS_MODULE, 1642 1642 .fb_open = savagefb_open, 1643 1643 .fb_release = savagefb_release,
+1 -1
drivers/video/fbdev/sh7760fb.c
··· 341 341 return 0; 342 342 } 343 343 344 - static struct fb_ops sh7760fb_ops = { 344 + static const struct fb_ops sh7760fb_ops = { 345 345 .owner = THIS_MODULE, 346 346 .fb_blank = sh7760fb_blank, 347 347 .fb_check_var = sh7760fb_check_var,
+2 -2
drivers/video/fbdev/sh_mobile_lcdcfb.c
··· 1490 1490 ovl->dma_handle, ovl->fb_size); 1491 1491 } 1492 1492 1493 - static struct fb_ops sh_mobile_lcdc_overlay_ops = { 1493 + static const struct fb_ops sh_mobile_lcdc_overlay_ops = { 1494 1494 .owner = THIS_MODULE, 1495 1495 .fb_read = fb_sys_read, 1496 1496 .fb_write = fb_sys_write, ··· 1964 1964 ch->dma_handle, ch->fb_size); 1965 1965 } 1966 1966 1967 - static struct fb_ops sh_mobile_lcdc_ops = { 1967 + static const struct fb_ops sh_mobile_lcdc_ops = { 1968 1968 .owner = THIS_MODULE, 1969 1969 .fb_setcolreg = sh_mobile_lcdc_setcolreg, 1970 1970 .fb_read = fb_sys_read,
+1 -1
drivers/video/fbdev/simplefb.c
··· 78 78 iounmap(info->screen_base); 79 79 } 80 80 81 - static struct fb_ops simplefb_ops = { 81 + static const struct fb_ops simplefb_ops = { 82 82 .owner = THIS_MODULE, 83 83 .fb_destroy = simplefb_destroy, 84 84 .fb_setcolreg = simplefb_setcolreg,
+1 -1
drivers/video/fbdev/sis/sis_main.c
··· 1906 1906 1907 1907 /* ---------------- fb_ops structures ----------------- */ 1908 1908 1909 - static struct fb_ops sisfb_ops = { 1909 + static const struct fb_ops sisfb_ops = { 1910 1910 .owner = THIS_MODULE, 1911 1911 .fb_open = sisfb_open, 1912 1912 .fb_release = sisfb_release,
+1 -1
drivers/video/fbdev/skeletonfb.c
··· 634 634 * Frame buffer operations 635 635 */ 636 636 637 - static struct fb_ops xxxfb_ops = { 637 + static const struct fb_ops xxxfb_ops = { 638 638 .owner = THIS_MODULE, 639 639 .fb_open = xxxfb_open, 640 640 .fb_read = xxxfb_read,
+1 -1
drivers/video/fbdev/sm712fb.c
··· 1369 1369 return 0; 1370 1370 } 1371 1371 1372 - static struct fb_ops smtcfb_ops = { 1372 + static const struct fb_ops smtcfb_ops = { 1373 1373 .owner = THIS_MODULE, 1374 1374 .fb_check_var = smtc_check_var, 1375 1375 .fb_set_par = smtc_set_par,
+1 -1
drivers/video/fbdev/smscufx.c
··· 1268 1268 return 0; 1269 1269 } 1270 1270 1271 - static struct fb_ops ufx_ops = { 1271 + static const struct fb_ops ufx_ops = { 1272 1272 .owner = THIS_MODULE, 1273 1273 .fb_read = fb_sys_read, 1274 1274 .fb_write = ufx_ops_write,
+1 -1
drivers/video/fbdev/ssd1307fb.c
··· 280 280 ssd1307fb_update_display(par); 281 281 } 282 282 283 - static struct fb_ops ssd1307fb_ops = { 283 + static const struct fb_ops ssd1307fb_ops = { 284 284 .owner = THIS_MODULE, 285 285 .fb_read = fb_sys_read, 286 286 .fb_write = ssd1307fb_write,
+1 -1
drivers/video/fbdev/sstfb.c
··· 1307 1307 } 1308 1308 1309 1309 1310 - static struct fb_ops sstfb_ops = { 1310 + static const struct fb_ops sstfb_ops = { 1311 1311 .owner = THIS_MODULE, 1312 1312 .fb_check_var = sstfb_check_var, 1313 1313 .fb_set_par = sstfb_set_par,
+1 -1
drivers/video/fbdev/stifb.c
··· 1101 1101 1102 1102 /* ------------ Interfaces to hardware functions ------------ */ 1103 1103 1104 - static struct fb_ops stifb_ops = { 1104 + static const struct fb_ops stifb_ops = { 1105 1105 .owner = THIS_MODULE, 1106 1106 .fb_setcolreg = stifb_setcolreg, 1107 1107 .fb_blank = stifb_blank,
+1 -1
drivers/video/fbdev/sunxvr1000.c
··· 59 59 return 0; 60 60 } 61 61 62 - static struct fb_ops gfb_ops = { 62 + static const struct fb_ops gfb_ops = { 63 63 .owner = THIS_MODULE, 64 64 .fb_setcolreg = gfb_setcolreg, 65 65 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/sunxvr2500.c
··· 63 63 return 0; 64 64 } 65 65 66 - static struct fb_ops s3d_ops = { 66 + static const struct fb_ops s3d_ops = { 67 67 .owner = THIS_MODULE, 68 68 .fb_setcolreg = s3d_setcolreg, 69 69 .fb_fillrect = cfb_fillrect,
+1 -1
drivers/video/fbdev/sunxvr500.c
··· 186 186 spin_unlock_irqrestore(&ep->lock, flags); 187 187 } 188 188 189 - static struct fb_ops e3d_ops = { 189 + static const struct fb_ops e3d_ops = { 190 190 .owner = THIS_MODULE, 191 191 .fb_setcolreg = e3d_setcolreg, 192 192 .fb_fillrect = e3d_fillrect,
+1 -1
drivers/video/fbdev/tcx.c
··· 40 40 * Frame buffer operations 41 41 */ 42 42 43 - static struct fb_ops tcx_ops = { 43 + static const struct fb_ops tcx_ops = { 44 44 .owner = THIS_MODULE, 45 45 .fb_setcolreg = tcx_setcolreg, 46 46 .fb_blank = tcx_blank,
+1 -1
drivers/video/fbdev/tdfxfb.c
··· 1141 1141 return 0; 1142 1142 } 1143 1143 1144 - static struct fb_ops tdfxfb_ops = { 1144 + static const struct fb_ops tdfxfb_ops = { 1145 1145 .owner = THIS_MODULE, 1146 1146 .fb_check_var = tdfxfb_check_var, 1147 1147 .fb_set_par = tdfxfb_set_par,
+1 -1
drivers/video/fbdev/tgafb.c
··· 70 70 * Frame buffer operations 71 71 */ 72 72 73 - static struct fb_ops tgafb_ops = { 73 + static const struct fb_ops tgafb_ops = { 74 74 .owner = THIS_MODULE, 75 75 .fb_check_var = tgafb_check_var, 76 76 .fb_set_par = tgafb_set_par,
+1 -1
drivers/video/fbdev/tmiofb.c
··· 646 646 return 0; 647 647 } 648 648 649 - static struct fb_ops tmiofb_ops = { 649 + static const struct fb_ops tmiofb_ops = { 650 650 .owner = THIS_MODULE, 651 651 652 652 .fb_ioctl = tmiofb_ioctl,
+1 -1
drivers/video/fbdev/tridentfb.c
··· 1443 1443 return (blank_mode == FB_BLANK_NORMAL) ? 1 : 0; 1444 1444 } 1445 1445 1446 - static struct fb_ops tridentfb_ops = { 1446 + static const struct fb_ops tridentfb_ops = { 1447 1447 .owner = THIS_MODULE, 1448 1448 .fb_setcolreg = tridentfb_setcolreg, 1449 1449 .fb_pan_display = tridentfb_pan_display,
+1 -1
drivers/video/fbdev/valkyriefb.c
··· 113 113 static void valkyrie_par_to_fix(struct fb_par_valkyrie *par, struct fb_fix_screeninfo *fix); 114 114 static void valkyrie_init_fix(struct fb_fix_screeninfo *fix, struct fb_info_valkyrie *p); 115 115 116 - static struct fb_ops valkyriefb_ops = { 116 + static const struct fb_ops valkyriefb_ops = { 117 117 .owner = THIS_MODULE, 118 118 .fb_check_var = valkyriefb_check_var, 119 119 .fb_set_par = valkyriefb_set_par,
+1 -1
drivers/video/fbdev/vfb.c
··· 78 78 static int vfb_mmap(struct fb_info *info, 79 79 struct vm_area_struct *vma); 80 80 81 - static struct fb_ops vfb_ops = { 81 + static const struct fb_ops vfb_ops = { 82 82 .fb_read = fb_sys_read, 83 83 .fb_write = fb_sys_write, 84 84 .fb_check_var = vfb_check_var,
+1 -1
drivers/video/fbdev/vga16fb.c
··· 1270 1270 framebuffer_release(info); 1271 1271 } 1272 1272 1273 - static struct fb_ops vga16fb_ops = { 1273 + static const struct fb_ops vga16fb_ops = { 1274 1274 .owner = THIS_MODULE, 1275 1275 .fb_open = vga16fb_open, 1276 1276 .fb_release = vga16fb_release,
+1 -1
drivers/video/fbdev/vt8500lcdfb.c
··· 238 238 return 0; 239 239 } 240 240 241 - static struct fb_ops vt8500lcd_ops = { 241 + static const struct fb_ops vt8500lcd_ops = { 242 242 .owner = THIS_MODULE, 243 243 .fb_set_par = vt8500lcd_set_par, 244 244 .fb_setcolreg = vt8500lcd_setcolreg,
+1 -1
drivers/video/fbdev/vt8623fb.c
··· 634 634 635 635 /* Frame buffer operations */ 636 636 637 - static struct fb_ops vt8623fb_ops = { 637 + static const struct fb_ops vt8623fb_ops = { 638 638 .owner = THIS_MODULE, 639 639 .fb_open = vt8623fb_open, 640 640 .fb_release = vt8623fb_release,
+1 -1
drivers/video/fbdev/w100fb.c
··· 549 549 /* 550 550 * Frame buffer operations 551 551 */ 552 - static struct fb_ops w100fb_ops = { 552 + static const struct fb_ops w100fb_ops = { 553 553 .owner = THIS_MODULE, 554 554 .fb_check_var = w100fb_check_var, 555 555 .fb_set_par = w100fb_set_par,
+1 -1
drivers/video/fbdev/wm8505fb.c
··· 246 246 return 0; 247 247 } 248 248 249 - static struct fb_ops wm8505fb_ops = { 249 + static const struct fb_ops wm8505fb_ops = { 250 250 .owner = THIS_MODULE, 251 251 .fb_set_par = wm8505fb_set_par, 252 252 .fb_setcolreg = wm8505fb_setcolreg,
+1 -1
drivers/video/fbdev/xen-fbfront.c
··· 328 328 return 0; 329 329 } 330 330 331 - static struct fb_ops xenfb_fb_ops = { 331 + static const struct fb_ops xenfb_fb_ops = { 332 332 .owner = THIS_MODULE, 333 333 .fb_read = fb_sys_read, 334 334 .fb_write = xenfb_write,
+1 -1
drivers/video/fbdev/xilinxfb.c
··· 247 247 return 0; /* success */ 248 248 } 249 249 250 - static struct fb_ops xilinxfb_ops = { 250 + static const struct fb_ops xilinxfb_ops = { 251 251 .owner = THIS_MODULE, 252 252 .fb_setcolreg = xilinx_fb_setcolreg, 253 253 .fb_blank = xilinx_fb_blank,