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

fbdev/imxfb: 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>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230803184034.6456-21-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 175 175 depends on FB && HAVE_CLK && HAS_IOMEM 176 176 depends on ARCH_MXC || COMPILE_TEST 177 177 select LCD_CLASS_DEVICE 178 - select FB_CFB_FILLRECT 179 - select FB_CFB_COPYAREA 180 - select FB_CFB_IMAGEBLIT 178 + select FB_IOMEM_HELPERS 181 179 select FB_MODE_HELPERS 182 180 select VIDEOMODE_HELPERS 183 181
+1 -3
drivers/video/fbdev/imxfb.c
··· 580 580 581 581 static const struct fb_ops imxfb_ops = { 582 582 .owner = THIS_MODULE, 583 + FB_DEFAULT_IOMEM_OPS, 583 584 .fb_check_var = imxfb_check_var, 584 585 .fb_set_par = imxfb_set_par, 585 586 .fb_setcolreg = imxfb_setcolreg, 586 - .fb_fillrect = cfb_fillrect, 587 - .fb_copyarea = cfb_copyarea, 588 - .fb_imageblit = cfb_imageblit, 589 587 .fb_blank = imxfb_blank, 590 588 }; 591 589