drm/amdgpu: add macro of umc for each channel
authorTao Zhou <tao.zhou1@amd.com>
Mon, 29 Jul 2019 06:50:35 +0000 (14:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:30:38 +0000 (10:30 -0500)
commitfee858ba5f96e6cbcbe8167444aeb6532519bb8c
treef0f6170274509402e04db6ada7ccfbfbbb69640d
parent3aacf4ea1102f24c8dc63eb6f3d734cbc8bad86e
drm/amdgpu: add macro of umc for each channel

common function for all umc versions, loop for each umc channel is
a frequent used operation in umc block, define it as a macro to
simplify code

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h