]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/simpledrm: Inline device-init helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 1 Aug 2022 13:50:25 +0000 (15:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Aug 2022 12:14:03 +0000 (14:14 +0200)
commitc25b69604fc4455228329c6c522a87974246e40f
tree248735fa086345285f85ed8aa3819a4558a211fa
parent03d38605cee7762d020dc14cfdefa6cef77b5811
drm/simpledrm: Inline device-init helpers

Inline the helpers for initializing the hardware FB, the memory
management and the modesetting into the device-creation function.
No functional changes.

In the original code, init helpers depended on values from other
init helpers. Inlining the functions ensures that steps are taken
in the correct order. It's also easier to see what happens. The
device is simple enough to be set up in one function. Only clocks
and regulators are still set up in their own helpers, as their
presence is system dependent.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220801135028.30647-3-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c