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

fbdev/pmag-aa-fb: 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-32-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1519 1519 config FB_PMAG_AA 1520 1520 tristate "PMAG-AA TURBOchannel framebuffer support" 1521 1521 depends on FB && TC 1522 - select FB_CFB_FILLRECT 1523 - select FB_CFB_COPYAREA 1524 - select FB_CFB_IMAGEBLIT 1522 + select FB_IOMEM_HELPERS 1525 1523 help 1526 1524 Support for the PMAG-AA TURBOchannel framebuffer card (1280x1024x1) 1527 1525 used mainly in the MIPS-based DECstation series.
+1 -3
drivers/video/fbdev/pmag-aa-fb.c
··· 149 149 150 150 static const struct fb_ops aafb_ops = { 151 151 .owner = THIS_MODULE, 152 + FB_DEFAULT_IOMEM_OPS, 152 153 .fb_blank = aafb_blank, 153 - .fb_fillrect = cfb_fillrect, 154 - .fb_copyarea = cfb_copyarea, 155 - .fb_imageblit = cfb_imageblit, 156 154 .fb_cursor = aafb_cursor, 157 155 }; 158 156