drm/amd/display: use proper pipe_ctx index
authorSamson Tam <Samson.Tam@amd.com>
Fri, 7 Sep 2018 14:13:55 +0000 (10:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 02:09:05 +0000 (21:09 -0500)
commita978f65765e2ccefb22eb77940685ae60c05ff6c
treebf59f44837a1fd4ea8b3b6c1e5030f8769280d59
parentaa9c4abe466ac7cd4ab8e1d81b959c3d51173745
drm/amd/display: use proper pipe_ctx index

Use link->link_index as index to pipe_ctx[] to get proper link
information instead of using index 0 to avoid potential miss matches.

Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c