drm: rockchip: Provide ddc symlink in inno_hdmi sysfs directory
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Mon, 26 Aug 2019 19:25:48 +0000 (21:25 +0200)
committerAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Thu, 7 Nov 2019 14:07:28 +0000 (15:07 +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>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/
drivers/gpu/drm/rockchip/inno_hdmi.c

index ed344a795b4d9aafce59d82f57cd8b12d39488e7..e5864e8230205f9a014d80bc8d235a5ca89f4794 100644 (file)
@@ -624,8 +624,10 @@ static int inno_hdmi_register(struct drm_device *drm, struct inno_hdmi *hdmi)
 
        drm_connector_helper_add(&hdmi->connector,
                                 &inno_hdmi_connector_helper_funcs);
-       drm_connector_init(drm, &hdmi->connector, &inno_hdmi_connector_funcs,
-                          DRM_MODE_CONNECTOR_HDMIA);
+       drm_connector_init_with_ddc(drm, &hdmi->connector,
+                                   &inno_hdmi_connector_funcs,
+                                   DRM_MODE_CONNECTOR_HDMIA,
+                                   hdmi->ddc);
 
        drm_connector_attach_encoder(&hdmi->connector, encoder);