drm/amdgpu: Provide ddc symlink in dm connector's sysfs directory
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Mon, 26 Aug 2019 19:25:45 +0000 (21:25 +0200)
committerAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Thu, 7 Nov 2019 14:07:05 +0000 (15:07 +0100)
Use the ddc pointer provided by the generic connector.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 2fca601..6bd0347 100644 (file)
@@ -5195,11 +5195,12 @@ static int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm,
 
        connector_type = to_drm_connector_type(link->connector_signal);
 
-       res = drm_connector_init(
+       res = drm_connector_init_with_ddc(
                        dm->ddev,
                        &aconnector->base,
                        &amdgpu_dm_connector_funcs,
-                       connector_type);
+                       connector_type,
+                       &i2c->base);
 
        if (res) {
                DRM_ERROR("connector_init failed\n");