]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: stop using switch for different CS revisions
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Wed, 29 Aug 2018 20:23:59 +0000 (16:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Sep 2018 20:47:11 +0000 (15:47 -0500)
commitb07971d43c4d321c65240749765bba2b2eaeeb30
tree67a41f3bc251d9abd6792f356b90a12f89cc504f
parentd77f778e59ca858e1fb1e9d4946080d689c04711
drm/amd/display: stop using switch for different CS revisions

Clock sources currently have support for asic specific
function pointers. But actual separation into functions
was never performed, leaving us with giant functions that
rely on switch.

This change creates separate functions, removing switch use.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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/dce/dce_clock_source.c
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c