linux/drivers/gpu/drm/amd/display
Rodrigo Siqueira c964b86e32 drm/amd/display: Add const to a function
When calling the dc_link_bw_kbps_from_raw_frl_link_rate_data from
amdgpu_dm, GCC highlighted the following issue:

  In function ‘get_conv_frl_bw’:
  error: passing argument 1 of
  ‘dc_link_bw_kbps_from_raw_frl_link_rate_data’ discards ‘const’ qualifier
  from pointer target type [-Werror=discarded-qualifiers]
  997 |                                 aconnector->dc_link->dc,

This commit fix this issue by making DC a constant variable since we
only use it to invoke the function
bw_kbps_from_raw_frl_link_rate_data().

Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-03-22 00:59:08 -04:00
..
amdgpu_dm drm/amd/display: remove outdated 8bpc comments 2023-03-22 00:48:01 -04:00
dc drm/amd/display: Add const to a function 2023-03-22 00:59:08 -04:00
dmub drm/amd/display: [FW Promotion] Release 0.0.158.0 2023-03-15 18:45:26 -04:00
include drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Move defines out to where they are actually used 2023-03-22 00:48:00 -04:00
modules drm/amd/display: Drop unnecessary DCN guards 2023-03-07 14:22:40 -05:00
Kconfig drm/amd/display: Rename DCN config to FP 2023-03-07 14:22:40 -05:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP 2023-03-07 14:22:39 -05:00
TODO