]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: vga: Inline ast_vga_connector_init()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2024 11:51:26 +0000 (13:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 13 Sep 2024 13:41:17 +0000 (15:41 +0200)
commit197c441bfd267f9fe988934f69e2c529cd0f0a63
treedfff09fa331b64228a73f0a79a40af4bd15a6bab
parent6fefb82efb6c55ec279cbae378e4e49dcc82006c
drm/ast: vga: Inline ast_vga_connector_init()

Inline ast_vga_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-9-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_vga.c