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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 351 351 config FB_CT65550 352 352 bool "Chips 65550 display support" 353 353 depends on (FB = y) && PPC32 && PCI 354 - select FB_CFB_FILLRECT 355 - select FB_CFB_COPYAREA 356 - select FB_CFB_IMAGEBLIT 354 + select FB_IOMEM_HELPERS 357 355 select VIDEO_NOMODESET 358 356 help 359 357 This is the frame buffer device driver for the Chips & Technologies
+1 -3
drivers/video/fbdev/chipsfb.c
··· 82 82 83 83 static const struct fb_ops chipsfb_ops = { 84 84 .owner = THIS_MODULE, 85 + FB_DEFAULT_IOMEM_OPS, 85 86 .fb_check_var = chipsfb_check_var, 86 87 .fb_set_par = chipsfb_set_par, 87 88 .fb_setcolreg = chipsfb_setcolreg, 88 89 .fb_blank = chipsfb_blank, 89 - .fb_fillrect = cfb_fillrect, 90 - .fb_copyarea = cfb_copyarea, 91 - .fb_imageblit = cfb_imageblit, 92 90 }; 93 91 94 92 static int chipsfb_check_var(struct fb_var_screeninfo *var,