]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: astdp: Inline ast_astdp_connector_init()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:19 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:13 +0000 (15:41 +0200)
commite9c37f7b71ac28d32201f8674bd232081d8b071f
tree99418ec1ec98f291d890db5d1b4158f74fc3f0a3
parent60c174898dbdc7610f185079b5c9e5d2fa5a626e
drm/ast: astdp: Inline ast_astdp_connector_init()

Inline ast_astdp_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-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp.c