]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: properly guard dc_dsc_stream_bandwidth_in_kbps
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Mar 2021 02:15:06 +0000 (22:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:37:27 +0000 (23:37 -0400)
commit468ce7fe696db56bed1ecb6395b8af2862be7771
tree63029de9edb4b8b5b22b3a5d75a599892958448d
parent7cb475dbef9e177da7d2f51e3758f53e9394789b
drm/amdgpu/display: properly guard dc_dsc_stream_bandwidth_in_kbps

Move the function protoype to the right header and guard
the call with CONFIG_DRM_AMD_DC_DCN as DSC is only available
with DCN.

Fixes: e3161e5077a3d8 ("drm/amd/display: Add changes for dsc bpp in 16ths and unify bw calculations")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Dillon Varone <dillon.varone@amd.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_dsc.h