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

fbdev/maxinefb: 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-24-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1556 1556 config FB_MAXINE 1557 1557 bool "Maxine (Personal DECstation) onboard framebuffer support" 1558 1558 depends on (FB = y) && MACH_DECSTATION 1559 - select FB_CFB_FILLRECT 1560 - select FB_CFB_COPYAREA 1561 - select FB_CFB_IMAGEBLIT 1559 + select FB_IOMEM_HELPERS 1562 1560 help 1563 1561 Support for the onboard framebuffer (1024x768x8) in the Personal 1564 1562 DECstation series (Personal DECstation 5000/20, /25, /33, /50,
+1 -3
drivers/video/fbdev/maxinefb.c
··· 107 107 108 108 static const struct fb_ops maxinefb_ops = { 109 109 .owner = THIS_MODULE, 110 + FB_DEFAULT_IOMEM_OPS, 110 111 .fb_setcolreg = maxinefb_setcolreg, 111 - .fb_fillrect = cfb_fillrect, 112 - .fb_copyarea = cfb_copyarea, 113 - .fb_imageblit = cfb_imageblit, 114 112 }; 115 113 116 114 int __init maxinefb_init(void)