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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 64 64 config FB_GRVGA 65 65 tristate "Aeroflex Gaisler framebuffer support" 66 66 depends on FB && SPARC 67 - select FB_CFB_FILLRECT 68 - select FB_CFB_COPYAREA 69 - select FB_CFB_IMAGEBLIT 67 + select FB_IOMEM_HELPERS 70 68 help 71 69 This enables support for the SVGACTRL framebuffer in the GRLIB IP library from Aeroflex Gaisler. 72 70
+1 -3
drivers/video/fbdev/grvga.c
··· 253 253 254 254 static const struct fb_ops grvga_ops = { 255 255 .owner = THIS_MODULE, 256 + FB_DEFAULT_IOMEM_OPS, 256 257 .fb_check_var = grvga_check_var, 257 258 .fb_set_par = grvga_set_par, 258 259 .fb_setcolreg = grvga_setcolreg, 259 260 .fb_pan_display = grvga_pan_display, 260 - .fb_fillrect = cfb_fillrect, 261 - .fb_copyarea = cfb_copyarea, 262 - .fb_imageblit = cfb_imageblit 263 261 }; 264 262 265 263 static int grvga_parse_custom(char *options,