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

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

+2 -7
+1 -3
drivers/video/fbdev/Kconfig
··· 1449 1449 config FB_CARMINE 1450 1450 tristate "Fujitsu carmine frame buffer support" 1451 1451 depends on FB && PCI 1452 - select FB_CFB_FILLRECT 1453 - select FB_CFB_COPYAREA 1454 - select FB_CFB_IMAGEBLIT 1452 + select FB_IOMEM_HELPERS 1455 1453 select VIDEO_NOMODESET 1456 1454 help 1457 1455 This is the frame buffer device driver for the Fujitsu Carmine chip.
+1 -4
drivers/video/fbdev/carminefb.c
··· 530 530 531 531 static const struct fb_ops carminefb_ops = { 532 532 .owner = THIS_MODULE, 533 - .fb_fillrect = cfb_fillrect, 534 - .fb_copyarea = cfb_copyarea, 535 - .fb_imageblit = cfb_imageblit, 536 - 533 + FB_DEFAULT_IOMEM_OPS, 537 534 .fb_check_var = carmine_check_var, 538 535 .fb_set_par = carmine_set_par, 539 536 .fb_setcolreg = carmine_setcolreg,