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

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

+2 -6
+1 -3
drivers/video/fbdev/Kconfig
··· 362 362 config FB_ASILIANT 363 363 bool "Asiliant (Chips) 69000 display support" 364 364 depends on (FB = y) && PCI 365 - select FB_CFB_FILLRECT 366 - select FB_CFB_COPYAREA 367 - select FB_CFB_IMAGEBLIT 365 + select FB_IOMEM_HELPERS 368 366 select VIDEO_NOMODESET 369 367 help 370 368 This is the frame buffer device driver for the Asiliant 69030 chipset
+1 -3
drivers/video/fbdev/asiliantfb.c
··· 98 98 99 99 static const struct fb_ops asiliantfb_ops = { 100 100 .owner = THIS_MODULE, 101 + FB_DEFAULT_IOMEM_OPS, 101 102 .fb_check_var = asiliantfb_check_var, 102 103 .fb_set_par = asiliantfb_set_par, 103 104 .fb_setcolreg = asiliantfb_setcolreg, 104 - .fb_fillrect = cfb_fillrect, 105 - .fb_copyarea = cfb_copyarea, 106 - .fb_imageblit = cfb_imageblit, 107 105 }; 108 106 109 107 /* Calculate the ratios for the dot clocks without using a single long long