drm/amd/display: Change dc_surface_update cm2_params to const
authorShunlu Zhang <Shunlu.Zhang@amd.com>
Tue, 3 Sep 2024 05:08:01 +0000 (01:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Oct 2024 21:31:23 +0000 (17:31 -0400)
commit83762925c94c9053de9aedf0a880907a655ec394
treef78f34b52a34ae4279bfb146ce1fe610e3d76a17
parent3924f200f199e604bc3a9f965b6dd7617d2bbe6a
drm/amd/display: Change dc_surface_update cm2_params to const

[WHY]
cm2_params is used to set update_flags.
It's value is not intended to be modified.

[WHAT]
Change the declaration of cm2_params to be a constant variable

Reviewed-by: Tao Huang <tao.huang@amd.com>
Reviewed-by: Ariel Bernstein <eric.bernstein@amd.com>
Signed-off-by: Shunlu Zhang <Shunlu.Zhang@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h