diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-09-01 14:47:06 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-11-25 16:14:58 +0100 |
commit | 17c2984492c4b4fb130c50c85d48d382cbb9471f (patch) | |
tree | 27fa211ef3e35036a7bc4c355356b46dc1f1ac6e /drivers/gpu/drm/tegra | |
parent | drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe() (diff) | |
download | linux-17c2984492c4b4fb130c50c85d48d382cbb9471f.tar.xz linux-17c2984492c4b4fb130c50c85d48d382cbb9471f.zip |
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.c | 9 |
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 |