Skip to content

Commit 17c2984

Browse files
jnikulathierryreding
authored andcommitted
drm/tegra: Convert to using is_hdmi from display info
Prefer the parsed results for is_hdmi in display info over calling drm_detect_hdmi_monitor(). Cc: Thierry Reding <[email protected]> Cc: [email protected] Signed-off-by: Jani Nikula <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 7ad4384 commit 17c2984

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/gpu/drm/tegra/hdmi.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -867,14 +867,7 @@ static int tegra_hdmi_reconfigure_audio(struct tegra_hdmi *hdmi)
867867

868868
static bool tegra_output_is_hdmi(struct tegra_output *output)
869869
{
870-
struct edid *edid;
871-
872-
if (!output->connector.edid_blob_ptr)
873-
return false;
874-
875-
edid = (struct edid *)output->connector.edid_blob_ptr->data;
876-
877-
return drm_detect_hdmi_monitor(edid);
870+
return output->connector.display_info.is_hdmi;
878871
}
879872

880873
static enum drm_connector_status

0 commit comments

Comments
 (0)