drm/amdgpu: unify some atombios/atomfirmware scratch reg functions
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jun 2017 21:08:45 +0000 (17:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:04 +0000 (11:06 -0400)
commitd05da0e24bb584baf634489810561fc3d2a83bf3
tree36d59a326acc891ebe230e6b0311df1283071144
parent3164cba317c235f950c861928b290dd93b30d821
drm/amdgpu: unify some atombios/atomfirmware scratch reg functions

Now that we use a pointer to the scratch reg start offset,
most of the functions were duplicated.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/soc15.c