Skip to content

Commit

Permalink
drm/amdgpu: Provide ddc symlink in dm connector's sysfs directory
Browse files Browse the repository at this point in the history
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/ <40293fa4e619d1d1af213a076b1d03440e50c56c.1566845537.git.andrzej.p@collabora.com
  • Loading branch information
Andrzej Pietrasiewicz committed Nov 7, 2019
1 parent af0e31a commit 17165de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 17165de

Please sign in to comment.