summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-05-30 17:12:17 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2023-06-01 12:26:45 +0200
commitf1061fa641b8b15c7815d58c20a6c29f2f1f5337 (patch)
tree4cbea3ded661fc11ca0dfc251673975d4e1a1122 /drivers/gpu/drm/armada
parent3b99ee5751c2dfa4b88bb00f573c78735563c4d7 (diff)
downloadlinux-stable-f1061fa641b8b15c7815d58c20a6c29f2f1f5337.tar.gz
linux-stable-f1061fa641b8b15c7815d58c20a6c29f2f1f5337.tar.bz2
linux-stable-f1061fa641b8b15c7815d58c20a6c29f2f1f5337.zip
fbdev: Add initializer macros for struct fb_ops
For framebuffers in I/O and system memory, add macros that set struct fb_ops to the respective callback functions. For deferred I/O, add macros that generate callback functions with damage handling. Add initializer macros that set struct fb_ops to the generated callbacks. These macros can remove a lot boilerplate code from fbdev drivers. The drivers are supposed to use the macro that is required for its framebuffer. Each macro is split into smaller helpers, so that drivers with non-standard callbacks can pick and customize callbacks as needed. There are individual helper macros for read/write, mmap and drawing. v5: * fix whitespace errors (Jingfeng) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230530151228.22979-3-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/armada')
0 files changed, 0 insertions, 0 deletions