drm/ast: Initialize encoder and connector for VGA in helper function
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 7 Feb 2022 14:15:41 +0000 (15:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 8 Feb 2022 12:39:06 +0000 (13:39 +0100)
commita59b026419f33040d7d28b8e3b1cea681b9ce7a7
treed4d0bcaad66f6572232312f15fd3f99eba4cf1c9
parentb20384d9196788dfed70aa7cfb2b3dc458217918
drm/ast: Initialize encoder and connector for VGA in helper function

Move encoder and connector initialization into a single helper and
put all related mode-setting structures into a single place. Done in
preparation of moving transmitter code into separate helpers. No
functional changes.

v2:
* move encoder CRTC bitmask fix into separate patch (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220207141544.30015-7-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c