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

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

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

v2:
- simplify widescreen-detection logic (Jocelyn)

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