fbdev/leo: Use initializer macro for struct fb_ops
authorThomas Zimmermann <tzimmermann@suse.de>
Sun, 6 Aug 2023 11:59:00 +0000 (13:59 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 28 Aug 2023 07:44:14 +0000 (09:44 +0200)
commit10ff3e6c8dbb9f1f47eefee842803a7661fd25ee
tree2b3e6f1fc3079839c714bc39176cc2f45bbc7798
parentaee3c3119fd5c3c3a3442b7056a2bf08163a8fd7
fbdev/leo: 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-10-tzimmermann@suse.de
drivers/video/fbdev/Kconfig
drivers/video/fbdev/leo.c