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

fbdev: Remove FBINFO_DEFAULT from framebuffer_alloc()'ed structs

The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags
has been allocated to zero by framebuffer_alloc(). So do not set it.

Flags should signal differences from the default values. After cleaning
up all occurrences of FBINFO_DEFAULT, the token will be removed.

v4:
* clarify commit message (Geert, Dan)
v2:
* fix commit message (Miguel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Ferenc Bakonyi <fero@drama.obuda.kando.hu>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Cc: Maik Broemme <mbroemme@libmpq.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: Bernie Thompson <bernie@plugable.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-6-tzimmermann@suse.de

+41 -81
+2 -3
drivers/video/fbdev/amifb.c
··· 2427 2427 info->fix.ywrapstep = 1; 2428 2428 info->fix.xpanstep = 0; 2429 2429 info->fix.ypanstep = 0; 2430 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YWRAP | 2430 + info->flags = FBINFO_HWACCEL_YWRAP | 2431 2431 FBINFO_READS_FAST; /* override SCROLL_REDRAW */ 2432 2432 } else { 2433 2433 info->fix.ywrapstep = 0; ··· 2436 2436 else 2437 2437 info->fix.xpanstep = 16 << maxfmode; 2438 2438 info->fix.ypanstep = 1; 2439 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 2439 + info->flags = FBINFO_HWACCEL_YPAN; 2440 2440 } 2441 2441 return 0; 2442 2442 } ··· 3660 3660 } 3661 3661 3662 3662 info->fbops = &amifb_ops; 3663 - info->flags = FBINFO_DEFAULT; 3664 3663 info->device = &pdev->dev; 3665 3664 3666 3665 if (!fb_find_mode(&info->var, info, mode_option, ami_modedb,
-1
drivers/video/fbdev/asiliantfb.c
··· 516 516 p->fix.smem_start = addr; 517 517 p->var = asiliantfb_var; 518 518 p->fbops = &asiliantfb_ops; 519 - p->flags = FBINFO_DEFAULT; 520 519 521 520 err = fb_alloc_cmap(&p->cmap, 256, 0); 522 521 if (err) {
+1 -1
drivers/video/fbdev/atmel_lcdfb.c
··· 1059 1059 if (IS_ERR(sinfo->reg_lcd)) 1060 1060 sinfo->reg_lcd = NULL; 1061 1061 1062 - info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK | 1062 + info->flags = FBINFO_PARTIAL_PAN_OK | 1063 1063 FBINFO_HWACCEL_YPAN; 1064 1064 info->pseudo_palette = sinfo->pseudo_palette; 1065 1065 info->fbops = &atmel_lcdfb_ops;
+1 -2
drivers/video/fbdev/aty/atyfb_base.c
··· 2637 2637 2638 2638 info->fbops = &atyfb_ops; 2639 2639 info->pseudo_palette = par->pseudo_palette; 2640 - info->flags = FBINFO_DEFAULT | 2641 - FBINFO_HWACCEL_IMAGEBLIT | 2640 + info->flags = FBINFO_HWACCEL_IMAGEBLIT | 2642 2641 FBINFO_HWACCEL_FILLRECT | 2643 2642 FBINFO_HWACCEL_COPYAREA | 2644 2643 FBINFO_HWACCEL_YPAN |
+1 -2
drivers/video/fbdev/aty/radeon_base.c
··· 1972 1972 1973 1973 info->par = rinfo; 1974 1974 info->pseudo_palette = rinfo->pseudo_palette; 1975 - info->flags = FBINFO_DEFAULT 1976 - | FBINFO_HWACCEL_COPYAREA 1975 + info->flags = FBINFO_HWACCEL_COPYAREA 1977 1976 | FBINFO_HWACCEL_FILLRECT 1978 1977 | FBINFO_HWACCEL_XPAN 1979 1978 | FBINFO_HWACCEL_YPAN;
-1
drivers/video/fbdev/bw2.c
··· 314 314 315 315 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); 316 316 317 - info->flags = FBINFO_DEFAULT; 318 317 info->fbops = &bw2_ops; 319 318 320 319 info->screen_base = of_ioremap(&op->resource[0], 0,
-1
drivers/video/fbdev/carminefb.c
··· 561 561 562 562 info->fix = carminefb_fix; 563 563 info->pseudo_palette = par->pseudo_palette; 564 - info->flags = FBINFO_DEFAULT; 565 564 566 565 ret = fb_alloc_cmap(&info->cmap, 256, 1); 567 566 if (ret < 0)
+1 -1
drivers/video/fbdev/cg14.c
··· 533 533 par->mode = MDI_8_PIX; 534 534 par->ramsize = (is_8mb ? 0x800000 : 0x400000); 535 535 536 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 536 + info->flags = FBINFO_HWACCEL_YPAN; 537 537 info->fbops = &cg14_ops; 538 538 539 539 __cg14_reset(par);
-1
drivers/video/fbdev/cg3.c
··· 384 384 if (!par->regs) 385 385 goto out_release_fb; 386 386 387 - info->flags = FBINFO_DEFAULT; 388 387 info->fbops = &cg3_ops; 389 388 info->screen_base = of_ioremap(&op->resource[0], CG3_RAM_OFFSET, 390 389 info->fix.smem_len, "cg3 ram");
+1 -1
drivers/video/fbdev/cg6.c
··· 782 782 par->fhc = of_ioremap(&op->resource[0], CG6_FHC_OFFSET, 783 783 sizeof(u32), "cgsix fhc"); 784 784 785 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_IMAGEBLIT | 785 + info->flags = FBINFO_HWACCEL_IMAGEBLIT | 786 786 FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT | 787 787 FBINFO_READS_FAST; 788 788 info->fbops = &cg6_ops;
-1
drivers/video/fbdev/chipsfb.c
··· 340 340 p->var = chipsfb_var; 341 341 342 342 p->fbops = &chipsfb_ops; 343 - p->flags = FBINFO_DEFAULT; 344 343 345 344 fb_alloc_cmap(&p->cmap, 256, 0); 346 345
+1 -2
drivers/video/fbdev/cirrusfb.c
··· 1978 1978 struct fb_var_screeninfo *var = &info->var; 1979 1979 1980 1980 info->pseudo_palette = cinfo->pseudo_palette; 1981 - info->flags = FBINFO_DEFAULT 1982 - | FBINFO_HWACCEL_XPAN 1981 + info->flags = FBINFO_HWACCEL_XPAN 1983 1982 | FBINFO_HWACCEL_YPAN 1984 1983 | FBINFO_HWACCEL_FILLRECT 1985 1984 | FBINFO_HWACCEL_IMAGEBLIT
-1
drivers/video/fbdev/clps711x-fb.c
··· 310 310 } 311 311 312 312 info->fbops = &clps711x_fb_ops; 313 - info->flags = FBINFO_DEFAULT; 314 313 info->var.activate = FB_ACTIVATE_FORCE | FB_ACTIVATE_NOW; 315 314 info->var.height = -1; 316 315 info->var.width = -1;
-1
drivers/video/fbdev/cobalt_lcdfb.c
··· 313 313 info->fix.smem_len = info->screen_size; 314 314 info->pseudo_palette = NULL; 315 315 info->par = NULL; 316 - info->flags = FBINFO_DEFAULT; 317 316 318 317 retval = register_framebuffer(info); 319 318 if (retval < 0) {
-1
drivers/video/fbdev/ep93xx-fb.c
··· 515 515 info->fix.accel = FB_ACCEL_NONE; 516 516 info->var.activate = FB_ACTIVATE_NOW; 517 517 info->var.vmode = FB_VMODE_NONINTERLACED; 518 - info->flags = FBINFO_DEFAULT; 519 518 info->node = -1; 520 519 info->state = FBINFO_STATE_RUNNING; 521 520 info->pseudo_palette = &fbi->pseudo_palette;
+1 -2
drivers/video/fbdev/ffb.c
··· 929 929 /* Don't mention copyarea, so SCROLL_REDRAW is always 930 930 * used. It is the fastest on this chip. 931 931 */ 932 - info->flags = (FBINFO_DEFAULT | 933 - /* FBINFO_HWACCEL_COPYAREA | */ 932 + info->flags = (/* FBINFO_HWACCEL_COPYAREA | */ 934 933 FBINFO_HWACCEL_FILLRECT | 935 934 FBINFO_HWACCEL_IMAGEBLIT); 936 935
-1
drivers/video/fbdev/fm2fb.c
··· 280 280 info->pseudo_palette = info->par; 281 281 info->par = NULL; 282 282 info->fix = fb_fix; 283 - info->flags = FBINFO_DEFAULT; 284 283 285 284 if (register_framebuffer(info) < 0) { 286 285 fb_dealloc_cmap(&info->cmap);
-1
drivers/video/fbdev/gbefb.c
··· 1194 1194 1195 1195 info->fbops = &gbefb_ops; 1196 1196 info->pseudo_palette = pseudo_palette; 1197 - info->flags = FBINFO_DEFAULT; 1198 1197 info->screen_base = gbe_mem; 1199 1198 fb_alloc_cmap(&info->cmap, 256, 0); 1200 1199
-1
drivers/video/fbdev/geode/gx1fb_core.c
··· 294 294 info->var.vmode = FB_VMODE_NONINTERLACED; 295 295 296 296 info->fbops = &gx1fb_ops; 297 - info->flags = FBINFO_DEFAULT; 298 297 info->node = -1; 299 298 300 299 info->pseudo_palette = (void *)par + sizeof(struct geodefb_par);
-1
drivers/video/fbdev/geode/gxfb_core.c
··· 308 308 info->var.vmode = FB_VMODE_NONINTERLACED; 309 309 310 310 info->fbops = &gxfb_ops; 311 - info->flags = FBINFO_DEFAULT; 312 311 info->node = -1; 313 312 314 313 info->pseudo_palette = (void *)par + sizeof(struct gxfb_par);
-1
drivers/video/fbdev/geode/lxfb_core.c
··· 432 432 info->var.vmode = FB_VMODE_NONINTERLACED; 433 433 434 434 info->fbops = &lxfb_ops; 435 - info->flags = FBINFO_DEFAULT; 436 435 info->node = -1; 437 436 438 437 info->pseudo_palette = (void *)par + sizeof(struct lxfb_par);
+1 -1
drivers/video/fbdev/grvga.c
··· 377 377 info->fbops = &grvga_ops; 378 378 info->fix = grvga_fix; 379 379 info->pseudo_palette = par->color_palette; 380 - info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK | FBINFO_HWACCEL_YPAN; 380 + info->flags = FBINFO_PARTIAL_PAN_OK | FBINFO_HWACCEL_YPAN; 381 381 info->fix.smem_len = grvga_mem_size; 382 382 383 383 if (!devm_request_mem_region(&dev->dev, dev->resource[0].start,
+1 -1
drivers/video/fbdev/hgafb.c
··· 573 573 hga_fix.smem_start = (unsigned long)hga_vram; 574 574 hga_fix.smem_len = hga_vram_len; 575 575 576 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 576 + info->flags = FBINFO_HWACCEL_YPAN; 577 577 info->var = hga_default_var; 578 578 info->fix = hga_fix; 579 579 info->monspecs.hfmin = 0;
+1 -1
drivers/video/fbdev/hitfb.c
··· 405 405 info->var = hitfb_var; 406 406 info->fix = hitfb_fix; 407 407 info->pseudo_palette = info->par; 408 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN | 408 + info->flags = FBINFO_HWACCEL_YPAN | 409 409 FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA; 410 410 411 411 info->screen_base = (char __iomem *)(uintptr_t)hitfb_fix.smem_start;
-2
drivers/video/fbdev/hyperv_fb.c
··· 1159 1159 } 1160 1160 1161 1161 /* Set up fb_info */ 1162 - info->flags = FBINFO_DEFAULT; 1163 - 1164 1162 info->var.xres_virtual = info->var.xres = screen_width; 1165 1163 info->var.yres_virtual = info->var.yres = screen_height; 1166 1164 info->var.bits_per_pixel = screen_depth;
+1 -1
drivers/video/fbdev/i740fb.c
··· 1077 1077 info->fix.mmio_len = pci_resource_len(dev, 1); 1078 1078 info->fix.smem_start = pci_resource_start(dev, 0); 1079 1079 info->fix.smem_len = info->screen_size; 1080 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1080 + info->flags = FBINFO_HWACCEL_YPAN; 1081 1081 1082 1082 if (i740fb_setup_ddc_bus(info) == 0) { 1083 1083 par->ddc_registered = true;
+2 -2
drivers/video/fbdev/i810/i810_main.c
··· 1442 1442 encode_fix(&info->fix, info); 1443 1443 1444 1444 if (info->var.accel_flags && !(par->dev_flags & LOCKUP)) { 1445 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN | 1445 + info->flags = FBINFO_HWACCEL_YPAN | 1446 1446 FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT | 1447 1447 FBINFO_HWACCEL_IMAGEBLIT; 1448 1448 info->pixmap.scan_align = 2; 1449 1449 } else { 1450 1450 info->pixmap.scan_align = 1; 1451 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1451 + info->flags = FBINFO_HWACCEL_YPAN; 1452 1452 } 1453 1453 return 0; 1454 1454 }
+1 -2
drivers/video/fbdev/imsttfb.c
··· 1447 1447 info->var.pixclock = 1000000 / getclkMHz(par); 1448 1448 1449 1449 info->fbops = &imsttfb_ops; 1450 - info->flags = FBINFO_DEFAULT | 1451 - FBINFO_HWACCEL_COPYAREA | 1450 + info->flags = FBINFO_HWACCEL_COPYAREA | 1452 1451 FBINFO_HWACCEL_FILLRECT | 1453 1452 FBINFO_HWACCEL_YPAN; 1454 1453
+2 -2
drivers/video/fbdev/intelfb/intelfbdrv.c
··· 1372 1372 intelfb_blank(FB_BLANK_UNBLANK, info); 1373 1373 1374 1374 if (ACCEL(dinfo, info)) { 1375 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN | 1375 + info->flags = FBINFO_HWACCEL_YPAN | 1376 1376 FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT | 1377 1377 FBINFO_HWACCEL_IMAGEBLIT; 1378 1378 } else 1379 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1379 + info->flags = FBINFO_HWACCEL_YPAN; 1380 1380 1381 1381 kfree(hw); 1382 1382 return 0;
-1
drivers/video/fbdev/kyro/fbdev.c
··· 716 716 info->fbops = &kyrofb_ops; 717 717 info->fix = kyro_fix; 718 718 info->pseudo_palette = currentpar->palette; 719 - info->flags = FBINFO_DEFAULT; 720 719 721 720 SetCoreClockPLL(deviceInfo.pSTGReg, pdev); 722 721
-1
drivers/video/fbdev/leo.c
··· 600 600 !info->screen_base) 601 601 goto out_unmap_regs; 602 602 603 - info->flags = FBINFO_DEFAULT; 604 603 info->fbops = &leo_ops; 605 604 info->pseudo_palette = par->clut_data; 606 605
+1 -1
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
··· 501 501 fbi->var.accel_flags = 0; 502 502 fbi->var.vmode = FB_VMODE_NONINTERLACED; 503 503 fbi->var.activate = FB_ACTIVATE_NOW; 504 - fbi->flags = FBINFO_DEFAULT | 504 + fbi->flags = 505 505 #ifdef __BIG_ENDIAN 506 506 FBINFO_FOREIGN_ENDIAN | 507 507 #endif
+1 -1
drivers/video/fbdev/mmp/fb/mmpfb.c
··· 502 502 { 503 503 int ret = 0; 504 504 /* Initialise static fb parameters.*/ 505 - info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK | 505 + info->flags = FBINFO_PARTIAL_PAN_OK | 506 506 FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN; 507 507 info->node = -1; 508 508 strcpy(info->fix.id, fbi->name);
+1 -1
drivers/video/fbdev/neofb.c
··· 1944 1944 1945 1945 par->internal_display = internal; 1946 1946 par->external_display = external; 1947 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1947 + info->flags = FBINFO_HWACCEL_YPAN; 1948 1948 1949 1949 switch (info->fix.accel) { 1950 1950 case FB_ACCEL_NEOMAGIC_NM2070:
+2 -2
drivers/video/fbdev/nvidia/nvidia.c
··· 1111 1111 int lpitch; 1112 1112 1113 1113 NVTRACE_ENTER(); 1114 - info->flags = FBINFO_DEFAULT 1115 - | FBINFO_HWACCEL_IMAGEBLIT 1114 + info->flags = 1115 + FBINFO_HWACCEL_IMAGEBLIT 1116 1116 | FBINFO_HWACCEL_FILLRECT 1117 1117 | FBINFO_HWACCEL_COPYAREA 1118 1118 | FBINFO_HWACCEL_YPAN;
+1 -1
drivers/video/fbdev/offb.c
··· 514 514 info->fbops = &offb_ops; 515 515 info->screen_base = ioremap(address, fix->smem_len); 516 516 info->pseudo_palette = par->pseudo_palette; 517 - info->flags = FBINFO_DEFAULT | foreign_endian; 517 + info->flags = foreign_endian; 518 518 519 519 fb_alloc_cmap(&info->cmap, 256, 0); 520 520
-1
drivers/video/fbdev/p9100.c
··· 283 283 if (!par->regs) 284 284 goto out_release_fb; 285 285 286 - info->flags = FBINFO_DEFAULT; 287 286 info->fbops = &p9100_ops; 288 287 info->screen_base = of_ioremap(&op->resource[2], 0, 289 288 info->fix.smem_len, "p9100 ram");
-1
drivers/video/fbdev/platinumfb.c
··· 317 317 /* Fill fb_info */ 318 318 info->fbops = &platinumfb_ops; 319 319 info->pseudo_palette = pinfo->pseudo_palette; 320 - info->flags = FBINFO_DEFAULT; 321 320 info->screen_base = pinfo->frame_buffer + 0x20; 322 321 323 322 fb_alloc_cmap(&info->cmap, 256, 0);
+1 -2
drivers/video/fbdev/pm2fb.c
··· 1657 1657 info->fbops = &pm2fb_ops; 1658 1658 info->fix = pm2fb_fix; 1659 1659 info->pseudo_palette = default_par->palette; 1660 - info->flags = FBINFO_DEFAULT | 1661 - FBINFO_HWACCEL_YPAN | 1660 + info->flags = FBINFO_HWACCEL_YPAN | 1662 1661 FBINFO_HWACCEL_COPYAREA | 1663 1662 FBINFO_HWACCEL_IMAGEBLIT | 1664 1663 FBINFO_HWACCEL_FILLRECT;
+1 -2
drivers/video/fbdev/pm3fb.c
··· 1390 1390 1391 1391 info->fix = pm3fb_fix; 1392 1392 info->pseudo_palette = par->palette; 1393 - info->flags = FBINFO_DEFAULT | 1394 - FBINFO_HWACCEL_XPAN | 1393 + info->flags = FBINFO_HWACCEL_XPAN | 1395 1394 FBINFO_HWACCEL_YPAN | 1396 1395 FBINFO_HWACCEL_COPYAREA | 1397 1396 FBINFO_HWACCEL_IMAGEBLIT |
-1
drivers/video/fbdev/pmag-aa-fb.c
··· 174 174 info->fbops = &aafb_ops; 175 175 info->fix = aafb_fix; 176 176 info->var = aafb_defined; 177 - info->flags = FBINFO_DEFAULT; 178 177 179 178 /* Request the I/O MEM resource. */ 180 179 start = tdev->resource.start;
-1
drivers/video/fbdev/pmag-ba-fb.c
··· 166 166 info->fbops = &pmagbafb_ops; 167 167 info->fix = pmagbafb_fix; 168 168 info->var = pmagbafb_defined; 169 - info->flags = FBINFO_DEFAULT; 170 169 171 170 /* Request the I/O MEM resource. */ 172 171 start = tdev->resource.start;
-1
drivers/video/fbdev/pmagb-b-fb.c
··· 273 273 info->fbops = &pmagbbfb_ops; 274 274 info->fix = pmagbbfb_fix; 275 275 info->var = pmagbbfb_defined; 276 - info->flags = FBINFO_DEFAULT; 277 276 278 277 /* Request the I/O MEM resource. */ 279 278 start = tdev->resource.start;
+1 -1
drivers/video/fbdev/ps3fb.c
··· 1145 1145 info->fix.smem_len = ps3fb_videomemory.size - GPU_FB_START; 1146 1146 1147 1147 info->pseudo_palette = par->pseudo_palette; 1148 - info->flags = FBINFO_DEFAULT | FBINFO_READS_FAST | 1148 + info->flags = FBINFO_READS_FAST | 1149 1149 FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN; 1150 1150 1151 1151 retval = fb_alloc_cmap(&info->cmap, 256, 0);
+1 -1
drivers/video/fbdev/pvr2fb.c
··· 810 810 fb_info->fix = pvr2_fix; 811 811 fb_info->par = currentpar; 812 812 fb_info->pseudo_palette = currentpar->palette; 813 - fb_info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 813 + fb_info->flags = FBINFO_HWACCEL_YPAN; 814 814 815 815 if (video_output == VO_VGA) 816 816 defmode = DEFMODE_VGA;
+1 -1
drivers/video/fbdev/pxa168fb.c
··· 637 637 /* 638 638 * Initialise static fb parameters. 639 639 */ 640 - info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK | 640 + info->flags = FBINFO_PARTIAL_PAN_OK | 641 641 FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN; 642 642 info->node = -1; 643 643 strscpy(info->fix.id, mi->id, 16);
-1
drivers/video/fbdev/q40fb.c
··· 99 99 info->var = q40fb_var; 100 100 info->fix = q40fb_fix; 101 101 info->fbops = &q40fb_ops; 102 - info->flags = FBINFO_DEFAULT; /* not as module for now */ 103 102 info->pseudo_palette = info->par; 104 103 info->par = NULL; 105 104 info->screen_base = (char *) q40fb_fix.smem_start;
+1 -2
drivers/video/fbdev/riva/fbdev.c
··· 1688 1688 struct riva_par *par = info->par; 1689 1689 1690 1690 NVTRACE_ENTER(); 1691 - info->flags = FBINFO_DEFAULT 1692 - | FBINFO_HWACCEL_XPAN 1691 + info->flags = FBINFO_HWACCEL_XPAN 1693 1692 | FBINFO_HWACCEL_YPAN 1694 1693 | FBINFO_HWACCEL_COPYAREA 1695 1694 | FBINFO_HWACCEL_FILLRECT
+2 -2
drivers/video/fbdev/s1d13xxxfb.c
··· 869 869 default_par->regs, info->fix.smem_len / 1024, info->screen_base); 870 870 871 871 info->par = default_par; 872 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 872 + info->flags = FBINFO_HWACCEL_YPAN; 873 873 info->fbops = &s1d13xxxfb_fbops; 874 874 875 875 switch(prod_id) { 876 876 case S1D13506_PROD_ID: /* activate acceleration */ 877 877 s1d13xxxfb_fbops.fb_fillrect = s1d13xxxfb_bitblt_solidfill; 878 878 s1d13xxxfb_fbops.fb_copyarea = s1d13xxxfb_bitblt_copyarea; 879 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN | 879 + info->flags = FBINFO_HWACCEL_YPAN | 880 880 FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA; 881 881 break; 882 882 default:
+1 -2
drivers/video/fbdev/savage/savagefb_driver.c
··· 2135 2135 info->var.accel_flags = 0; 2136 2136 2137 2137 info->fbops = &savagefb_ops; 2138 - info->flags = FBINFO_DEFAULT | 2139 - FBINFO_HWACCEL_YPAN | 2138 + info->flags = FBINFO_HWACCEL_YPAN | 2140 2139 FBINFO_HWACCEL_XPAN; 2141 2140 2142 2141 info->pseudo_palette = par->pseudo_palette;
-1
drivers/video/fbdev/simplefb.c
··· 479 479 par->size = info->fix.smem_len; 480 480 481 481 info->fbops = &simplefb_ops; 482 - info->flags = FBINFO_DEFAULT; 483 482 info->screen_base = ioremap_wc(info->fix.smem_start, 484 483 info->fix.smem_len); 485 484 if (!info->screen_base) {
+1 -2
drivers/video/fbdev/sis/sis_main.c
··· 6472 6472 sisfb_initaccel(ivideo); 6473 6473 6474 6474 #if defined(FBINFO_HWACCEL_DISABLED) && defined(FBINFO_HWACCEL_XPAN) 6475 - sis_fb_info->flags = FBINFO_DEFAULT | 6476 - FBINFO_HWACCEL_YPAN | 6475 + sis_fb_info->flags = FBINFO_HWACCEL_YPAN | 6477 6476 FBINFO_HWACCEL_XPAN | 6478 6477 FBINFO_HWACCEL_COPYAREA | 6479 6478 FBINFO_HWACCEL_FILLRECT |
+1 -1
drivers/video/fbdev/skeletonfb.c
··· 716 716 * 717 717 * NOTE: These are for fbcon use only. 718 718 */ 719 - info->flags = FBINFO_DEFAULT; 719 + info->flags = 0; 720 720 721 721 /********************* This stage is optional ******************************/ 722 722 /*
+1 -1
drivers/video/fbdev/smscufx.c
··· 114 114 .accel = FB_ACCEL_NONE, 115 115 }; 116 116 117 - static const u32 smscufx_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST | 117 + static const u32 smscufx_info_flags = FBINFO_READS_FAST | 118 118 FBINFO_VIRTFB | FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT | 119 119 FBINFO_HWACCEL_COPYAREA | FBINFO_MISC_ALWAYS_SETPAR; 120 120
-1
drivers/video/fbdev/sstfb.c
··· 1399 1399 f_ddprintk("membase_phys: %#lx\n", fix->smem_start); 1400 1400 f_ddprintk("fbbase_virt: %p\n", info->screen_base); 1401 1401 1402 - info->flags = FBINFO_DEFAULT; 1403 1402 info->fbops = &sstfb_ops; 1404 1403 info->pseudo_palette = par->palette; 1405 1404
-1
drivers/video/fbdev/sunxvr1000.c
··· 72 72 struct fb_info *info = gp->info; 73 73 struct fb_var_screeninfo *var = &info->var; 74 74 75 - info->flags = FBINFO_DEFAULT; 76 75 info->fbops = &gfb_ops; 77 76 info->screen_base = gp->fb_base; 78 77 info->screen_size = gp->fb_size;
-1
drivers/video/fbdev/sunxvr2500.c
··· 77 77 struct fb_info *info = sp->info; 78 78 struct fb_var_screeninfo *var = &info->var; 79 79 80 - info->flags = FBINFO_DEFAULT; 81 80 info->fbops = &s3d_ops; 82 81 info->screen_base = sp->fb_base; 83 82 info->screen_size = sp->fb_size;
-1
drivers/video/fbdev/sunxvr500.c
··· 200 200 struct fb_info *info = ep->info; 201 201 struct fb_var_screeninfo *var = &info->var; 202 202 203 - info->flags = FBINFO_DEFAULT; 204 203 info->fbops = &e3d_ops; 205 204 info->screen_base = ep->fb_base; 206 205 info->screen_size = ep->fb_size;
-1
drivers/video/fbdev/tcx.c
··· 438 438 par->mmap_map[i].poff = op->resource[j].start; 439 439 } 440 440 441 - info->flags = FBINFO_DEFAULT; 442 441 info->fbops = &tcx_ops; 443 442 444 443 /* Initialize brooktree DAC. */
+1 -1
drivers/video/fbdev/tdfxfb.c
··· 1468 1468 1469 1469 info->fbops = &tdfxfb_ops; 1470 1470 info->pseudo_palette = default_par->palette; 1471 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1471 + info->flags = FBINFO_HWACCEL_YPAN; 1472 1472 #ifdef CONFIG_FB_3DFX_ACCEL 1473 1473 info->flags |= FBINFO_HWACCEL_FILLRECT | 1474 1474 FBINFO_HWACCEL_COPYAREA |
+1 -1
drivers/video/fbdev/tgafb.c
··· 1470 1470 par->tga_chip_rev = TGA_READ_REG(par, TGA_START_REG) & 0xff; 1471 1471 1472 1472 /* Setup framebuffer. */ 1473 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_COPYAREA | 1473 + info->flags = FBINFO_HWACCEL_COPYAREA | 1474 1474 FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT; 1475 1475 info->fbops = &tgafb_ops; 1476 1476 info->screen_base = par->tga_fb_base;
+1 -1
drivers/video/fbdev/tridentfb.c
··· 1600 1600 info->fbops = &tridentfb_ops; 1601 1601 info->pseudo_palette = default_par->pseudo_pal; 1602 1602 1603 - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1603 + info->flags = FBINFO_HWACCEL_YPAN; 1604 1604 if (!noaccel && default_par->init_accel) { 1605 1605 info->flags &= ~FBINFO_HWACCEL_DISABLED; 1606 1606 info->flags |= FBINFO_HWACCEL_COPYAREA;
+1 -1
drivers/video/fbdev/udlfb.c
··· 39 39 .accel = FB_ACCEL_NONE, 40 40 }; 41 41 42 - static const u32 udlfb_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST | 42 + static const u32 udlfb_info_flags = FBINFO_READS_FAST | 43 43 FBINFO_VIRTFB | 44 44 FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT | 45 45 FBINFO_HWACCEL_COPYAREA | FBINFO_MISC_ALWAYS_SETPAR;
+1 -1
drivers/video/fbdev/via/viafbdev.c
··· 1770 1770 viafbinfo->fix.mmio_len = vdev->engine_len; 1771 1771 viafbinfo->node = 0; 1772 1772 viafbinfo->fbops = &viafb_ops; 1773 - viafbinfo->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; 1773 + viafbinfo->flags = FBINFO_HWACCEL_YPAN; 1774 1774 1775 1775 viafbinfo->pseudo_palette = pseudo_pal; 1776 1776 if (viafb_accel && !viafb_setup_engine(viafbinfo)) {