Commit bb9d681b authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz

drm/tegra: Provide ddc symlink in output connector sysfs directory

Use the ddc pointer provided by the generic connector.
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200102132300.24309-2-andrzej.p@collabora.com
parent b18398c1
...@@ -1430,9 +1430,10 @@ static int tegra_hdmi_init(struct host1x_client *client) ...@@ -1430,9 +1430,10 @@ static int tegra_hdmi_init(struct host1x_client *client)
hdmi->output.dev = client->dev; hdmi->output.dev = client->dev;
drm_connector_init(drm, &hdmi->output.connector, drm_connector_init_with_ddc(drm, &hdmi->output.connector,
&tegra_hdmi_connector_funcs, &tegra_hdmi_connector_funcs,
DRM_MODE_CONNECTOR_HDMIA); DRM_MODE_CONNECTOR_HDMIA,
hdmi->output.ddc);
drm_connector_helper_add(&hdmi->output.connector, drm_connector_helper_add(&hdmi->output.connector,
&tegra_hdmi_connector_helper_funcs); &tegra_hdmi_connector_helper_funcs);
hdmi->output.connector.dpms = DRM_MODE_DPMS_OFF; hdmi->output.connector.dpms = DRM_MODE_DPMS_OFF;
......
...@@ -3086,9 +3086,10 @@ static int tegra_sor_init(struct host1x_client *client) ...@@ -3086,9 +3086,10 @@ static int tegra_sor_init(struct host1x_client *client)
sor->output.dev = sor->dev; sor->output.dev = sor->dev;
drm_connector_init(drm, &sor->output.connector, drm_connector_init_with_ddc(drm, &sor->output.connector,
&tegra_sor_connector_funcs, &tegra_sor_connector_funcs,
connector); connector,
sor->output.ddc);
drm_connector_helper_add(&sor->output.connector, drm_connector_helper_add(&sor->output.connector,
&tegra_sor_connector_helper_funcs); &tegra_sor_connector_helper_funcs);
sor->output.connector.dpms = DRM_MODE_DPMS_OFF; sor->output.connector.dpms = DRM_MODE_DPMS_OFF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment