drm/amd/display: use encoder type independent hwss instead of accessing enc directly
authorWenjing Liu <wenjing.liu@amd.com>
Thu, 24 Nov 2022 21:40:53 +0000 (16:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Dec 2022 17:18:18 +0000 (12:18 -0500)
commite85d59885409736ad21cafd27eb73d6f7630cefb
tree96efdd4e0507e599999c4e2354899f8271c42370
parentebf13b72020ad45c6e27f784638f247a92786cc0
drm/amd/display: use encoder type independent hwss instead of accessing enc directly

[why]
in dc_link_dp there still exist a few places where we call dio encoders
without checking current enabled encoder type.
The change is to make these places to call hwss equivalent functions so
it won't mistakenly program a wrong type encoder.

Reviewed-by: George Shen <George.Shen@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c