drm/fb-helper: Use fb_{cfb,sys}_{read, write}()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 28 Apr 2023 12:24:52 +0000 (14:24 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 May 2023 13:28:34 +0000 (15:28 +0200)
commit04408952fe2aa60db266cfa8f6db22a6ff3e1971
tree153313c995e9513903e9942f1455f52061f8c551
parent6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff
drm/fb-helper: Use fb_{cfb,sys}_{read, write}()

Implement DRM fbdev helpers for reading and writing framebuffer
memory with the respective fbdev functions. Removes duplicate
code.

v2:
* rename fb_cfb_() to fb_io_() (Geert)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Helge Deller <deller@gmx.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230428122452.4856-20-tzimmermann@suse.de
drivers/gpu/drm/drm_fb_helper.c