]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a41db2492cb658813aa5c125f27aad413269685
tree73ab89ef69a0decb95df88200a6fd00b6e4420f6
parentc949f8cb83090e3b08375f23766d8e2ab53f6c7d
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