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

fbdev/simplefb: 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: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230803184034.6456-40-tzimmermann@suse.de

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1939 1939 depends on FB 1940 1940 depends on !DRM_SIMPLEDRM 1941 1941 select APERTURE_HELPERS 1942 - select FB_CFB_FILLRECT 1943 - select FB_CFB_COPYAREA 1944 - select FB_CFB_IMAGEBLIT 1942 + select FB_IOMEM_HELPERS 1945 1943 help 1946 1944 Say Y if you want support for a simple frame-buffer. 1947 1945
+1 -3
drivers/video/fbdev/simplefb.c
··· 109 109 110 110 static const struct fb_ops simplefb_ops = { 111 111 .owner = THIS_MODULE, 112 + FB_DEFAULT_IOMEM_OPS, 112 113 .fb_destroy = simplefb_destroy, 113 114 .fb_setcolreg = simplefb_setcolreg, 114 - .fb_fillrect = cfb_fillrect, 115 - .fb_copyarea = cfb_copyarea, 116 - .fb_imageblit = cfb_imageblit, 117 115 }; 118 116 119 117 static struct simplefb_format simplefb_formats[] = SIMPLEFB_FORMATS;