Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/external/bsd/drm2/dist/drm/amd/display/dc/core



Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 11:22:40 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/amd/display/dc/core:
            amdgpu_dc_link_dp.c

Log Message:
amdgpu: Fix bogus enum.

Cherry-picked from:

commit a110f3750bf8b93764f13bd1402c7cba03d15d61
Author: Arnd Bergmann <arnd%arndb.de@localhost>
Date:   Mon Oct 26 22:00:30 2020 +0100

    drm/amdgpu: fix incorrect enum type

    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 'enu
m 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@localhost>
    Signed-off-by: Alex Deucher <alexander.deucher%amd.com@localhost>


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/amdgpu_dc_link_dp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index