diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-09-01 15:47:06 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-11-25 18:14:58 +0300 |
commit | 17c2984492c4b4fb130c50c85d48d382cbb9471f (patch) | |
tree | 27fa211ef3e35036a7bc4c355356b46dc1f1ac6e /drivers/gpu/drm/tegra | |
parent | 7ad4384d53c67672a8720cdc2ef638d7d1710ab8 (diff) | |
download | linux-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.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 |