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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 407 407 config FB_MAC 408 408 bool "Generic Macintosh display support" 409 409 depends on (FB = y) && MAC 410 - select FB_CFB_FILLRECT 411 - select FB_CFB_COPYAREA 412 - select FB_CFB_IMAGEBLIT 410 + select FB_IOMEM_HELPERS 413 411 select FB_MACMODES 414 412 415 413 config FB_HP300
+1 -3
drivers/video/fbdev/macfb.c
··· 498 498 499 499 static const struct fb_ops macfb_ops = { 500 500 .owner = THIS_MODULE, 501 + FB_DEFAULT_IOMEM_OPS, 501 502 .fb_setcolreg = macfb_setcolreg, 502 - .fb_fillrect = cfb_fillrect, 503 - .fb_copyarea = cfb_copyarea, 504 - .fb_imageblit = cfb_imageblit, 505 503 }; 506 504 507 505 static void __init macfb_setup(char *options)