From: Austin Zheng <[email protected]>

[WHY/HOW]
Integer values for
dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_params
should not have the const qualifier.
This prevents using different values of the inputs when the
function is called again.

Reviewed-by: Dillon Varone <[email protected]>
Signed-off-by: Austin Zheng <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
---
 .../dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h
 
b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h
index 36250f3d83aa..df552eac0006 100644
--- 
a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h
+++ 
b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h
@@ -1823,8 +1823,8 @@ struct 
dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_param
        bool UnboundedRequestEnabled;
        unsigned int CompressedBufferSizeInkByte;
        bool max_outstanding_when_urgent_expected;
-       const unsigned int max_outstanding_requests;
-       const unsigned int max_request_size_bytes;
+       unsigned int max_outstanding_requests;
+       unsigned int max_request_size_bytes;
        const unsigned int *meta_row_height_l;
        const unsigned int *meta_row_height_c;
        const enum dml2_pstate_method *uclk_pstate_switch_modes;
-- 
2.43.0

Reply via email to