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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 1098 1098 config FB_ATY128 1099 1099 tristate "ATI Rage128 display support" 1100 1100 depends on FB && PCI 1101 - select FB_CFB_FILLRECT 1102 - select FB_CFB_COPYAREA 1103 - select FB_CFB_IMAGEBLIT 1104 1101 select FB_BACKLIGHT if FB_ATY128_BACKLIGHT 1102 + select FB_IOMEM_HELPERS 1105 1103 select FB_MACMODES if PPC_PMAC 1106 1104 select VIDEO_NOMODESET 1107 1105 help
+1 -3
drivers/video/fbdev/aty/aty128fb.c
··· 504 504 505 505 static const struct fb_ops aty128fb_ops = { 506 506 .owner = THIS_MODULE, 507 + FB_DEFAULT_IOMEM_OPS, 507 508 .fb_check_var = aty128fb_check_var, 508 509 .fb_set_par = aty128fb_set_par, 509 510 .fb_setcolreg = aty128fb_setcolreg, ··· 512 511 .fb_blank = aty128fb_blank, 513 512 .fb_ioctl = aty128fb_ioctl, 514 513 .fb_sync = aty128fb_sync, 515 - .fb_fillrect = cfb_fillrect, 516 - .fb_copyarea = cfb_copyarea, 517 - .fb_imageblit = cfb_imageblit, 518 514 }; 519 515 520 516 /*