fbdev/cg3: Use initializer macro for struct fb_ops
authorThomas Zimmermann <tzimmermann@suse.de>
Sun, 6 Aug 2023 11:58:57 +0000 (13:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 28 Aug 2023 07:44:03 +0000 (09:44 +0200)
commit6e4241347b656e43c73ce6ebfb5f2961f0cdf4a0
treeae32921b22648dce1d8b6ce440340bd4fb9d281a
parent1d3bba30ded24c8916fc65cacf5ff16c3d642f81
fbdev/cg3: Use initializer macro for struct fb_ops

Initialize struct fb_ops to the correct default values with the
macro FB_DEFAULT_SBUS_OPS(). Rename the ioctl and mmap callbacks
to use the infix _sbusfb_. This makes them fit the SBUS helpers'
naming pattern. Also make the driver depend on FB_SBUS_HELPERS,
which selects the correct modules.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230806120926.5368-7-tzimmermann@suse.de
drivers/video/fbdev/Kconfig
drivers/video/fbdev/cg3.c