drm/ast: Detect ast device type and config mode without ast device
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Nov 2023 09:59:28 +0000 (10:59 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 28 Nov 2023 15:17:08 +0000 (16:17 +0100)
commit51412f869337682d0e9e640c5b424ffb8295d353
treed1cb26f932196c25ecfdd732206266f6537e6c48
parent9f3ebec843b0f48ea2c22b7e85c34040aa7c9ee8
drm/ast: Detect ast device type and config mode without ast device

Return the ast chip and config in the detection function's parameters
instead of storing them directly in the ast device instance.

v2:
* add break statements to switch default branches (Jocelyn)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231116100240.22975-10-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_main.c