drm/amdgpu: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi
authorClaudio Suarez <cssk@net-c.es>
Sun, 17 Oct 2021 11:35:00 +0000 (13:35 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Dec 2021 18:13:07 +0000 (13:13 -0500)
commit3c021931023a30316db415044531b116b85e6ebd
tree1fc40b9101129385038f5eb0ec78277d54b14455
parent0b7778f4a63a1e0dc10af27201b99d88fc0ee7b0
drm/amdgpu: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

Once EDID is parsed, the monitor HDMI support information is available
through drm_display_info.is_hdmi. The amdgpu driver still calls
drm_detect_hdmi_monitor() to retrieve the same information, which
is less efficient. Change to drm_display_info.is_hdmi

This is a TODO task in Documentation/gpu/todo.rst

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Claudio Suarez <cssk@net-c.es>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dm_helpers.h