drm/amd/display: Fix DML dummyinteger types mismatch
authorJerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Thu, 12 Dec 2019 15:37:35 +0000 (10:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:55:27 +0000 (16:55 -0500)
[Why]
The types for dummyinteger1 and dummyinteger2 are unsigned
as part of the DML spec. They should not be long.

[How]
Make them unsigned int instead of long.

Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h

index e7a44df..2875efd 100644 (file)
@@ -763,8 +763,8 @@ struct vba_vars_st {
        double SwathWidthC[DC__NUM_DPP__MAX];
        unsigned int BytePerPixelY[DC__NUM_DPP__MAX];
        unsigned int BytePerPixelC[DC__NUM_DPP__MAX];
-       long dummyinteger1;
-       long dummyinteger2;
+       unsigned int dummyinteger1;
+       unsigned int dummyinteger2;
        double FinalDRAMClockChangeLatency;
        double Tdmdl_vm[DC__NUM_DPP__MAX];
        double Tdmdl[DC__NUM_DPP__MAX];