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

fbdev/da8xx-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-9-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1837 1837 tristate "DA8xx/OMAP-L1xx/AM335x Framebuffer support" 1838 1838 depends on FB && HAVE_CLK && HAS_IOMEM 1839 1839 depends on ARCH_DAVINCI_DA8XX || SOC_AM33XX || COMPILE_TEST 1840 - select FB_CFB_FILLRECT 1841 - select FB_CFB_COPYAREA 1842 - select FB_CFB_IMAGEBLIT 1843 1840 select FB_CFB_REV_PIXELS_IN_BYTE 1841 + select FB_IOMEM_HELPERS 1844 1842 select FB_MODE_HELPERS 1845 1843 select VIDEOMODE_HELPERS 1846 1844 help
+1 -3
drivers/video/fbdev/da8xx-fb.c
··· 1295 1295 1296 1296 static const struct fb_ops da8xx_fb_ops = { 1297 1297 .owner = THIS_MODULE, 1298 + FB_DEFAULT_IOMEM_OPS, 1298 1299 .fb_check_var = fb_check_var, 1299 1300 .fb_set_par = da8xxfb_set_par, 1300 1301 .fb_setcolreg = fb_setcolreg, 1301 1302 .fb_pan_display = da8xx_pan_display, 1302 1303 .fb_ioctl = fb_ioctl, 1303 - .fb_fillrect = cfb_fillrect, 1304 - .fb_copyarea = cfb_copyarea, 1305 - .fb_imageblit = cfb_imageblit, 1306 1304 .fb_blank = cfb_blank, 1307 1305 }; 1308 1306