]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: Move Gen6 device initialization into separate helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 22 Sep 2025 08:36:10 +0000 (10:36 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 29 Sep 2025 11:28:15 +0000 (13:28 +0200)
commit7b6665147a0da0054abe56bc7b968108955fe8d3
tree8e46c366f08cc75bec2b6e2efb440f04728336ae
parent0125a7c3ae72da4d20e405dff676ad9a58e826b9
drm/ast: Move Gen6 device initialization into separate helper

Split off device initialization for Gen6 hardware into the helpers
ast_2500_device_create() and ast_2500_detect_wide_screen(). The new
functions are duplicates of their counterparts in ast_main.c, but
stripped from most non-Gen6 support.

Simplifies maintenance as the driver's number of supported hardware
generations grows.

v2:
- simplify widescreen-detection logic

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250922083708.45564-11-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2500.c
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h