diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-01-23 22:37:30 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-02-09 11:15:45 +0300 |
commit | 3de47e1309c2348ffd397a28ca076eb350c4f5dd (patch) | |
tree | 653c631592fce3658890ba315477dcd6cdeba7f4 /drivers/gpu/drm/bridge/sii902x.c | |
parent | d0f1fd3a29004a67016f4e9623d1ca45c72f1fb7 (diff) | |
download | linux-3de47e1309c2348ffd397a28ca076eb350c4f5dd.tar.xz |
drm/bridge: sii902x: use display info is_hdmi
Use the pre-parsed information instead of parsing EDID again.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/9350875730b332ab2cac58fcbe7f4812fab567b8.1706038510.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/bridge/sii902x.c')
-rw-r--r-- | drivers/gpu/drm/bridge/sii902x.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index 4560ae9cbce1..d59e668498c3 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -286,12 +286,6 @@ static struct edid *sii902x_get_edid(struct sii902x *sii902x, mutex_lock(&sii902x->mutex); edid = drm_get_edid(connector, sii902x->i2cmux->adapter[0]); - if (edid) { - if (drm_detect_hdmi_monitor(edid)) - sii902x->sink_is_hdmi = true; - else - sii902x->sink_is_hdmi = false; - } mutex_unlock(&sii902x->mutex); @@ -311,6 +305,8 @@ static int sii902x_get_modes(struct drm_connector *connector) kfree(edid); } + sii902x->sink_is_hdmi = connector->display_info.is_hdmi; + return num; } |