]> git.baikalelectronics.ru Git - kernel.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)
commit283b25a86be3040a1342124359d5c612a33ff641
tree248735fa086345285f85ed8aa3819a4558a211fa
parent3b1e6fa9af44559c50bfdbe86f1533139551e6cd
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