drm/amd/display: move bw calc code into helpers
authorEric Yang <Eric.Yang2@amd.com>
Wed, 22 May 2019 18:24:40 +0000 (14:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:08 +0000 (14:18 -0500)
commit6de202373bf6e0cea0f47c2f81274f713c22d84d
tree9dd1a3b844e8ad0e27376285a987431192e48cc0
parent4bc846908be51fcd66fed18aba9ba531a38dc725
drm/amd/display: move bw calc code into helpers

[Why]
For better readability and reusability

[How]
Move snippets of BW calculation code into helpers.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Fatemeh Darbehani <Fatemeh.Darbehani@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h