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

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

+2 -6
+1 -3
drivers/video/fbdev/mmp/fb/Kconfig
··· 2 2 config MMP_FB 3 3 tristate "fb driver for Marvell MMP Display Subsystem" 4 4 depends on FB 5 - select FB_CFB_FILLRECT 6 - select FB_CFB_COPYAREA 7 - select FB_CFB_IMAGEBLIT 5 + select FB_IOMEM_HELPERS 8 6 default y 9 7 help 10 8 fb driver for Marvell MMP Display Subsystem
+1 -3
drivers/video/fbdev/mmp/fb/mmpfb.c
··· 454 454 455 455 static const struct fb_ops mmpfb_ops = { 456 456 .owner = THIS_MODULE, 457 + FB_DEFAULT_IOMEM_OPS, 457 458 .fb_blank = mmpfb_blank, 458 459 .fb_check_var = mmpfb_check_var, 459 460 .fb_set_par = mmpfb_set_par, 460 461 .fb_setcolreg = mmpfb_setcolreg, 461 462 .fb_pan_display = mmpfb_pan_display, 462 - .fb_fillrect = cfb_fillrect, 463 - .fb_copyarea = cfb_copyarea, 464 - .fb_imageblit = cfb_imageblit, 465 463 }; 466 464 467 465 static int modes_setup(struct mmpfb_info *fbi)