fbdev/hyperv_fb: Use fb_ops helpers for deferred I/O
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 28 Aug 2023 13:14:20 +0000 (15:14 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 5 Sep 2023 12:13:59 +0000 (14:13 +0200)
commit66a749a752351c7cdd0a4fefb2544ab05e7987c3
treeb41ef3eb6aff3359bc7f250bbfcbfb3272a5cb45
parentee057f972d321cce2637a708d2f189481e855f58
fbdev/hyperv_fb: Use fb_ops helpers for deferred I/O

Generate callback functions for struct fb_ops with the fbdev macro
FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(). Initialize struct fb_ops to
the generated functions with fbdev initializer macros.

The hyperv_fb driver is incomplete in its handling of deferred I/O
and damage framebuffers. Write operations do no trigger damage handling.
Fixing this is beyond the scope of this patch.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230828132131.29295-5-tzimmermann@suse.de
drivers/video/fbdev/Kconfig
drivers/video/fbdev/hyperv_fb.c