fbdev/hecubafb: Generate deferred I/O ops
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 6 Jul 2023 15:08:47 +0000 (17:08 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 8 Jul 2023 19:03:12 +0000 (21:03 +0200)
commit479d89c91f7211dd2d398c974fe53b82e50f1ada
treeb432fc403238df6d13c7af29513259f3c244d467
parentd2aff548347666cc495055a50538e77d357915f0
fbdev/hecubafb: Generate deferred I/O ops

Use the existing generator macros to create deferred-I/O helpers
for hecubafb and set them in the fb_ops structure. Functions
for damage handling on memory ranges and areas are provided by
the driver.

Hecubafb's implementation of fb_write writes to system memory,
so the generated code can use the respective helper internally.
This also fixes a long-standing bug where fb_write returned an
errno code instead of the number of written bytes. See the commit
message of commit 921b7383f348 ("fbdev: Return number of bytes
read or written") for more details.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230706151432.20674-5-tzimmermann@suse.de
drivers/video/fbdev/hecubafb.c