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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1752 1752 config FB_IBM_GXT4500 1753 1753 tristate "Framebuffer support for IBM GXT4000P/4500P/6000P/6500P adaptors" 1754 1754 depends on FB 1755 - select FB_CFB_FILLRECT 1756 - select FB_CFB_COPYAREA 1757 - select FB_CFB_IMAGEBLIT 1755 + select FB_IOMEM_HELPERS 1758 1756 select VIDEO_NOMODESET 1759 1757 help 1760 1758 Say Y here to enable support for the IBM GXT4000P/6000P and
+1 -3
drivers/video/fbdev/gxt4500.c
··· 602 602 603 603 static const struct fb_ops gxt4500_ops = { 604 604 .owner = THIS_MODULE, 605 + FB_DEFAULT_IOMEM_OPS, 605 606 .fb_check_var = gxt4500_check_var, 606 607 .fb_set_par = gxt4500_set_par, 607 608 .fb_setcolreg = gxt4500_setcolreg, 608 609 .fb_pan_display = gxt4500_pan_display, 609 610 .fb_blank = gxt4500_blank, 610 - .fb_fillrect = cfb_fillrect, 611 - .fb_copyarea = cfb_copyarea, 612 - .fb_imageblit = cfb_imageblit, 613 611 }; 614 612 615 613 /* PCI functions */