]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/tegra: Provide ddc symlink in output connector sysfs directory
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Thu, 2 Jan 2020 13:22:57 +0000 (14:22 +0100)
committerAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Tue, 7 Jan 2020 19:25:24 +0000 (20:25 +0100)
Use the ddc pointer provided by the generic connector.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200102132300.24309-2-andrzej.p@collabora.com
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/sor.c

index 50269ffbcb6ba2b6739ed9b5025ba1d4daff9cec..21a629adcb51c442b2b8f130fbbc560767a85411 100644 (file)
@@ -1430,9 +1430,10 @@ static int tegra_hdmi_init(struct host1x_client *client)
 
        hdmi->output.dev = client->dev;
 
-       drm_connector_init(drm, &hdmi->output.connector,
-                          &tegra_hdmi_connector_funcs,
-                          DRM_MODE_CONNECTOR_HDMIA);
+       drm_connector_init_with_ddc(drm, &hdmi->output.connector,
+                                   &tegra_hdmi_connector_funcs,
+                                   DRM_MODE_CONNECTOR_HDMIA,
+                                   hdmi->output.ddc);
        drm_connector_helper_add(&hdmi->output.connector,
                                 &tegra_hdmi_connector_helper_funcs);
        hdmi->output.connector.dpms = DRM_MODE_DPMS_OFF;
index a68d3b36b9724bb7ad71c88fee388486751590fb..1b8087d2dafe5bc454bf624b9c832fea125ef398 100644 (file)
@@ -3086,9 +3086,10 @@ static int tegra_sor_init(struct host1x_client *client)
 
        sor->output.dev = sor->dev;
 
-       drm_connector_init(drm, &sor->output.connector,
-                          &tegra_sor_connector_funcs,
-                          connector);
+       drm_connector_init_with_ddc(drm, &sor->output.connector,
+                                   &tegra_sor_connector_funcs,
+                                   connector,
+                                   sor->output.ddc);
        drm_connector_helper_add(&sor->output.connector,
                                 &tegra_sor_connector_helper_funcs);
        sor->output.connector.dpms = DRM_MODE_DPMS_OFF;