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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 269 269 config FB_FM2 270 270 bool "Amiga FrameMaster II/Rainbow II support" 271 271 depends on (FB = y) && ZORRO 272 - select FB_CFB_FILLRECT 273 - select FB_CFB_COPYAREA 274 - select FB_CFB_IMAGEBLIT 272 + select FB_IOMEM_HELPERS 275 273 help 276 274 This is the frame buffer device driver for the Amiga FrameMaster 277 275 card from BSC (exhibited 1992 but not shipped as a CBM product).
+1 -3
drivers/video/fbdev/fm2fb.c
··· 167 167 168 168 static const struct fb_ops fm2fb_ops = { 169 169 .owner = THIS_MODULE, 170 + FB_DEFAULT_IOMEM_OPS, 170 171 .fb_setcolreg = fm2fb_setcolreg, 171 172 .fb_blank = fm2fb_blank, 172 - .fb_fillrect = cfb_fillrect, 173 - .fb_copyarea = cfb_copyarea, 174 - .fb_imageblit = cfb_imageblit, 175 173 }; 176 174 177 175 /*