]> Gentwo Git Trees - linux/.git/commit
drm/ast: Move Gen1 device initialization into separate helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 22 Sep 2025 08:36:05 +0000 (10:36 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 29 Sep 2025 11:28:11 +0000 (13:28 +0200)
commit4b233efd7475d71de479c5983a7f124e3f261d67
treee15640850b6cbee6f8eca24fb24cc96eb5759c7f
parentff721b545b52dc0fcc6f0c0e53cc31dc44030cd6
drm/ast: Move Gen1 device initialization into separate helper

Split off device initialization for Gen1 hardware into the helper
ast_2000_device_create(). The new function is a duplicate of their
counterpart in ast_main.c, but stripped from most non-Gen1 support.

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

v2:
- remove unnecessary 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-6-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2000.c
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h