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

fbdev/pmagb-b-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
* fix driver name in commit message

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-34-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1535 1535 config FB_PMAGB_B 1536 1536 tristate "PMAGB-B TURBOchannel framebuffer support" 1537 1537 depends on FB && TC 1538 - select FB_CFB_FILLRECT 1539 - select FB_CFB_COPYAREA 1540 - select FB_CFB_IMAGEBLIT 1538 + select FB_IOMEM_HELPERS 1541 1539 help 1542 1540 Support for the PMAGB-B TURBOchannel framebuffer card used mainly 1543 1541 in the MIPS-based DECstation series. The card is currently only
+1 -3
drivers/video/fbdev/pmagb-b-fb.c
··· 123 123 124 124 static const struct fb_ops pmagbbfb_ops = { 125 125 .owner = THIS_MODULE, 126 + FB_DEFAULT_IOMEM_OPS, 126 127 .fb_setcolreg = pmagbbfb_setcolreg, 127 - .fb_fillrect = cfb_fillrect, 128 - .fb_copyarea = cfb_copyarea, 129 - .fb_imageblit = cfb_imageblit, 130 128 }; 131 129 132 130