drm/ast: Use drm_connector_helper_get_modes()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 25 Mar 2024 20:06:56 +0000 (21:06 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 2 Apr 2024 08:40:50 +0000 (10:40 +0200)
commit90170b186ff552ec080ede18b7c3c2aeb6d5b993
treeec292b63ed0776aed63e5b175e29181b52454c1f
parentdfff99cb56904087e35dbecec3d482aa8a95436a
drm/ast: Use drm_connector_helper_get_modes()

The .get_modes() code for VGA and SIL164 connectors does not depend
on either type of connector. Replace the driver code with the common
helper drm_connector_helper_get_modes(). It reads EDID data via
DDC and updates the connector's EDID property.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240325200855.21150-12-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c