fbdev/bw2: Use initializer macro for struct fb_ops
authorThomas Zimmermann <tzimmermann@suse.de>
Sun, 6 Aug 2023 11:58:55 +0000 (13:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 28 Aug 2023 07:43:56 +0000 (09:43 +0200)
commit3409343341b10eb99c8bf1eb46a2c49e9cdd786d
tree7d4292dd210eb4af485083a6a3cde7e2bb5334e4
parentcbe606f304ec188b90e0b9f8b3e8b37d57553f81
fbdev/bw2: 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-5-tzimmermann@suse.de
drivers/video/fbdev/Kconfig
drivers/video/fbdev/bw2.c