“794327ab53cc6b330774d6fdb93b547666583db9”上不存在“drivers/git@gitcode.net:openeuler/kernel.git”
提交 4635c17d 编写于 作者: T Tomi Valkeinen

drm/omap: DVI connector fix

The omapdrm driver currently uses a string comparison to find out if the
display is a DVI display. This is not reliable, and as we now have a
specific display type for DVI, let's use that.
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 bc24b8b6
无相关合并请求
...@@ -65,10 +65,8 @@ static int get_connector_type(struct omap_dss_device *dssdev) ...@@ -65,10 +65,8 @@ static int get_connector_type(struct omap_dss_device *dssdev)
switch (dssdev->type) { switch (dssdev->type) {
case OMAP_DISPLAY_TYPE_HDMI: case OMAP_DISPLAY_TYPE_HDMI:
return DRM_MODE_CONNECTOR_HDMIA; return DRM_MODE_CONNECTOR_HDMIA;
case OMAP_DISPLAY_TYPE_DPI: case OMAP_DISPLAY_TYPE_DVI:
if (!strcmp(dssdev->name, "dvi")) return DRM_MODE_CONNECTOR_DVID;
return DRM_MODE_CONNECTOR_DVID;
/* fallthrough */
default: default:
return DRM_MODE_CONNECTOR_Unknown; return DRM_MODE_CONNECTOR_Unknown;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部