]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/ast: Move Gen7 device initialization into separate helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 22 Sep 2025 08:36:11 +0000 (10:36 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 29 Sep 2025 11:28:16 +0000 (13:28 +0200)
commitdba8ecc8a8678bccd01304481c9315047fda8237
tree6fa7930670bda7d6ac8208fcda4362e4bc92ffcb
parent7b6665147a0da0054abe56bc7b968108955fe8d3
drm/ast: Move Gen7 device initialization into separate helper

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

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

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