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

fbdev/mb862xxfb: Use fbdev I/O helpers

Set struct fb_ops and with FB_DEFAULT_IOMEM_OPS, fbdev's initializer
for I/O memory. Sets the callbacks to the cfb_ and fb_io_ functions.
Select the correct modules with Kconfig's FB_IOMEM_HELPERS token.

The macro and token set the currently selected values, so there is
no functional change.

v3:
* use _IOMEM_ in commit message
v2:
* updated to use _IOMEM_ tokens

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230803184034.6456-25-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1869 1869 tristate "Fujitsu MB862xx GDC support" 1870 1870 depends on FB 1871 1871 depends on PCI || (OF && PPC) 1872 - select FB_CFB_FILLRECT 1873 - select FB_CFB_COPYAREA 1874 - select FB_CFB_IMAGEBLIT 1872 + select FB_IOMEM_HELPERS 1875 1873 select VIDEO_NOMODESET 1876 1874 help 1877 1875 Frame buffer driver for Fujitsu Carmine/Coral-P(A)/Lime controllers.
+1 -3
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
··· 407 407 /* framebuffer ops */ 408 408 static struct fb_ops mb862xxfb_ops = { 409 409 .owner = THIS_MODULE, 410 + FB_DEFAULT_IOMEM_OPS, 410 411 .fb_check_var = mb862xxfb_check_var, 411 412 .fb_set_par = mb862xxfb_set_par, 412 413 .fb_setcolreg = mb862xxfb_setcolreg, 413 414 .fb_blank = mb862xxfb_blank, 414 415 .fb_pan_display = mb862xxfb_pan, 415 - .fb_fillrect = cfb_fillrect, 416 - .fb_copyarea = cfb_copyarea, 417 - .fb_imageblit = cfb_imageblit, 418 416 .fb_ioctl = mb862xxfb_ioctl, 419 417 }; 420 418