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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 631 631 config FB_XVR1000 632 632 bool "Sun XVR-1000 support" 633 633 depends on (FB = y) && SPARC64 634 - select FB_CFB_FILLRECT 635 - select FB_CFB_COPYAREA 636 - select FB_CFB_IMAGEBLIT 634 + select FB_IOMEM_HELPERS 637 635 help 638 636 This is the framebuffer device for the Sun XVR-1000 and similar 639 637 graphics cards. The driver only works on sparc64 systems where
+1 -3
drivers/video/fbdev/sunxvr1000.c
··· 61 61 62 62 static const struct fb_ops gfb_ops = { 63 63 .owner = THIS_MODULE, 64 + FB_DEFAULT_IOMEM_OPS, 64 65 .fb_setcolreg = gfb_setcolreg, 65 - .fb_fillrect = cfb_fillrect, 66 - .fb_copyarea = cfb_copyarea, 67 - .fb_imageblit = cfb_imageblit, 68 66 }; 69 67 70 68 static int gfb_set_fbinfo(struct gfb_info *gp)