]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amdgpu: fix incorrect enum type
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 21:00:30 +0000 (22:00 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:36:31 +0000 (16:36 +0100)
commit76e3fdc02c6088d4da890ab514b50cb829090b80
tree899dcb6585927526d3f28e49843b830555d205a1
parentb6a8bfa0009fde5d37406ab05d4aa8c6f157143b
drm/amdgpu: fix incorrect enum type

BugLink: https://bugs.launchpad.net/bugs/1910111
[ Upstream commit a110f3750bf8b93764f13bd1402c7cba03d15d61 ]

core_link_write_dpcd() returns enum dc_status, not ddc_result:

display/dc/core/dc_link_dp.c: In function 'dp_set_panel_mode':
display/dc/core/dc_link_dp.c:4237:11: warning: implicit conversion from 'enum dc_status' to 'enum ddc_result'
[-Wenum-conversion]

Avoid the warning by using the correct enum in the caller.

Fixes: 0b226322434c ("drm/amd/display: Synchronous DisplayPort Link Training")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c