summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2022-09-01 15:47:06 +0300
committerThierry Reding <treding@nvidia.com>2022-11-25 18:14:58 +0300
commit17c2984492c4b4fb130c50c85d48d382cbb9471f (patch)
tree27fa211ef3e35036a7bc4c355356b46dc1f1ac6e /drivers/gpu/drm/tegra
parent7ad4384d53c67672a8720cdc2ef638d7d1710ab8 (diff)
downloadlinux-17c2984492c4b4fb130c50c85d48d382cbb9471f.tar.xz
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 <thierry.reding@gmail.com> Cc: linux-tegra@vger.kernel.org Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/hdmi.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
index bf240767dad9..40ec3e6cf204 100644
--- a/drivers/gpu/drm/tegra/hdmi.c
+++ b/drivers/gpu/drm/tegra/hdmi.c
@@ -867,14 +867,7 @@ static int tegra_hdmi_reconfigure_audio(struct tegra_hdmi *hdmi)
static bool tegra_output_is_hdmi(struct tegra_output *output)
{
- struct edid *edid;
-
- if (!output->connector.edid_blob_ptr)
- return false;
-
- edid = (struct edid *)output->connector.edid_blob_ptr->data;
-
- return drm_detect_hdmi_monitor(edid);
+ return output->connector.display_info.is_hdmi;
}
static enum drm_connector_status