]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: sil164: Inline ast_sil164_connector_init()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:25 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:17 +0000 (15:41 +0200)
commit6fefb82efb6c55ec279cbae378e4e49dcc82006c
tree59bc6365e843c3dfc755d9b4c0aeb2da09c23240
parent620824660ec89c691b763faa406d93fc591a34a9
drm/ast: sil164: Inline ast_sil164_connector_init()

Inline ast_sil164_connector_init() into its only caller. The helper
currently only does half of the connector-init work and is trivial
enough to be inlined. While at it, remove the error message from the
call to ast_ddc_create(). The function already warns on errors.

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-8-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_sil164.c