drm/mgag200: Implement connector's get_modes with helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 16 May 2022 13:43:39 +0000 (15:43 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 May 2022 18:23:38 +0000 (20:23 +0200)
commit16f1456466c269ecda32b88c3f8fdd76f8ec370c
tree73ab89ef69a0decb95df88200a6fd00b6e4420f6
parentd50f74790bbba662d1438dbc03be6616c52c0722
drm/mgag200: Implement connector's get_modes with helper

Provide drm_connector_helper_get_modes_from_ddc() to implement the
connector's get_modes callback. The new helper updates the connector
from DDC-provided EDID data.

v2:
* clear property if EDID is NULL in helper

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220516134343.6085-4-tzimmermann@suse.de
drivers/gpu/drm/drm_probe_helper.c
drivers/gpu/drm/mgag200/mgag200_mode.c
include/drm/drm_probe_helper.h