drm/amdgpu: use register distance member instead of hardcode in gfxhub v1
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Jul 2020 08:08:23 +0000 (16:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:03:38 +0000 (09:03 -0400)
commit8c4713608586b04068e98c913766882f495f0d0f
tree230fe4162bacd233feaf62cb4f5eb455c52eeded
parent9a69574b10a2077670926c905c80157d9d7b28e8
drm/amdgpu: use register distance member instead of hardcode in gfxhub v1

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

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_v1_0.c