drm/bridge: synopsys: dw-hdmi: update for remove connector port

Change-Id: Ia0ca8c2fddf89f29bf4ac5703d8f4d0f68d6446a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2020-07-01 17:34:57 +08:00
committed by Tao Huang
parent 8b4333efc1
commit 4d1bfde6c6
2 changed files with 4 additions and 3 deletions

View File

@@ -2940,7 +2940,6 @@ static int dw_hdmi_bridge_attach(struct drm_bridge *bridge)
connector->interlace_allowed = 1;
connector->polled = DRM_CONNECTOR_POLL_HPD;
connector->port = hdmi->dev->of_node;
drm_connector_helper_add(connector, &dw_hdmi_connector_helper_funcs);
drm_connector_init(bridge->dev, connector, &dw_hdmi_connector_funcs,
@@ -3982,7 +3981,7 @@ EXPORT_SYMBOL_GPL(dw_hdmi_remove);
*/
struct dw_hdmi *dw_hdmi_bind(struct platform_device *pdev,
struct drm_encoder *encoder,
const struct dw_hdmi_plat_data *plat_data)
struct dw_hdmi_plat_data *plat_data)
{
struct dw_hdmi *hdmi;
int ret;
@@ -3997,6 +3996,7 @@ struct dw_hdmi *dw_hdmi_bind(struct platform_device *pdev,
DRM_ERROR("Failed to initialize bridge with drm\n");
return ERR_PTR(ret);
}
plat_data->connector = &hdmi->connector;
return hdmi;
}

View File

@@ -179,6 +179,7 @@ struct dw_hdmi_plat_data {
/* Vendor Property support */
const struct dw_hdmi_property_ops *property_ops;
struct drm_connector *connector;
};
struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev,
@@ -187,7 +188,7 @@ void dw_hdmi_remove(struct dw_hdmi *hdmi);
void dw_hdmi_unbind(struct dw_hdmi *hdmi);
struct dw_hdmi *dw_hdmi_bind(struct platform_device *pdev,
struct drm_encoder *encoder,
const struct dw_hdmi_plat_data *plat_data);
struct dw_hdmi_plat_data *plat_data);
void dw_hdmi_suspend(struct device *dev, struct dw_hdmi *hdmi);
void dw_hdmi_resume(struct device *dev, struct dw_hdmi *hdmi);