drm/ast: Move widescreen and tx-chip detection into separate helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 21 Jun 2023 12:53:47 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 27 Jun 2023 12:26:40 +0000 (14:26 +0200)
commit546b959ed7aade7a74fe5874adbd89886c5c6d8a
tree50d2df857236811546c1696be7c1ab3b55befc61
parent52c29330ebdd592483a98f5e46c60af83084cc7f
drm/ast: Move widescreen and tx-chip detection into separate helpers

Split ast_detect_chip() into three functions and call them one by
one. The new functions detect the transmitter chip and widescreen
support. This will allow for further refactoring.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com> # AST2600
Tested-by: Sui Jingfeng <suijingfeng@loongson.cn> # AST2400
Link: https://patchwork.freedesktop.org/patch/msgid/20230621130032.3568-14-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_main.c