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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 139 139 config FB_ACORN 140 140 bool "Acorn VIDC support" 141 141 depends on (FB = y) && ARM && ARCH_ACORN 142 - select FB_CFB_FILLRECT 143 - select FB_CFB_COPYAREA 144 - select FB_CFB_IMAGEBLIT 142 + select FB_IOMEM_HELPERS 145 143 help 146 144 This is the frame buffer device driver for the Acorn VIDC graphics 147 145 hardware found in Acorn RISC PCs and other ARM-based machines. If
+1 -3
drivers/video/fbdev/acornfb.c
··· 605 605 606 606 static const struct fb_ops acornfb_ops = { 607 607 .owner = THIS_MODULE, 608 + FB_IOMEM_DEFAULT_OPS, 608 609 .fb_check_var = acornfb_check_var, 609 610 .fb_set_par = acornfb_set_par, 610 611 .fb_setcolreg = acornfb_setcolreg, 611 612 .fb_pan_display = acornfb_pan_display, 612 - .fb_fillrect = cfb_fillrect, 613 - .fb_copyarea = cfb_copyarea, 614 - .fb_imageblit = cfb_imageblit, 615 613 }; 616 614 617 615 /*