drm/amdgpu: use register distance member instead of hardcode in gfxhub v2.1
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Jul 2020 08:28:33 +0000 (16:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:03:49 +0000 (09:03 -0400)
commit13ae12d9e4ec1cc66ff8de77470195de158e6556
tree810792611fba4d016ec10b224e635bcf318fc98e
parent1e40eebefa7c5b56e9d58ce1e1060bcdcc23c8be
drm/amdgpu: use register distance member instead of hardcode in gfxhub v2.1

This patch updates to use register distance member instead of hardcode
in gfxhub v2.1.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Tested-by: AnZhong Huang <anzhong.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c