]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: dp501: Inline ast_dp501_connector_init()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:23 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:15 +0000 (15:41 +0200)
commit0b3d4b6f86357c1599f94be657b8295507950676
tree2615e57ce5bc10222f72d309f852ff31f0cd23ac
parent4e29cc7c5c673299cfbaf4982fc8b6a72c9f706f
drm/ast: dp501: Inline ast_dp501_connector_init()

Inline ast_dp501_connector_init() into its only caller. The helper
currently only does half of the connector-init work and is trivial
enough to be inlined.

Also set the local variables for encoder and connector as late as
possible, so that the compiler warns if we use them before having
initialized the instance.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240911115347.899148-6-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp501.c