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

media/vivid: 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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Helge Deller <deller@gmx.de>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230803184034.6456-2-tzimmermann@suse.de

+2 -6
+1 -3
drivers/media/test-drivers/vivid/Kconfig
··· 3 3 tristate "Virtual Video Test Driver" 4 4 depends on VIDEO_DEV && !SPARC32 && !SPARC64 && FB 5 5 depends on HAS_DMA 6 + select FB_IOMEM_HELPERS 6 7 select FONT_SUPPORT 7 8 select FONT_8x16 8 - select FB_CFB_FILLRECT 9 - select FB_CFB_COPYAREA 10 - select FB_CFB_IMAGEBLIT 11 9 select VIDEOBUF2_VMALLOC 12 10 select VIDEOBUF2_DMA_CONTIG 13 11 select VIDEO_V4L2_TPG
+1 -3
drivers/media/test-drivers/vivid/vivid-osd.c
··· 246 246 247 247 static const struct fb_ops vivid_fb_ops = { 248 248 .owner = THIS_MODULE, 249 + FB_DEFAULT_IOMEM_OPS, 249 250 .fb_check_var = vivid_fb_check_var, 250 251 .fb_set_par = vivid_fb_set_par, 251 252 .fb_setcolreg = vivid_fb_setcolreg, 252 - .fb_fillrect = cfb_fillrect, 253 - .fb_copyarea = cfb_copyarea, 254 - .fb_imageblit = cfb_imageblit, 255 253 .fb_cursor = NULL, 256 254 .fb_ioctl = vivid_fb_ioctl, 257 255 .fb_pan_display = vivid_fb_pan_display,