drm/amdgpu: Optimize the asic type fix code
authorMa Jun <Jun.Ma2@amd.com>
Tue, 31 Oct 2023 11:10:47 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Nov 2023 16:18:32 +0000 (12:18 -0400)
commitdbab63561b3cf6acfa3f089319dcc0e78ad31586
tree8076a742dd4149815edd7f34f1b9143bb2a0a481
parent36e7ff5c13cb15cb7b06c76d42bb76cbf6b7ea75
drm/amdgpu: Optimize the asic type fix code

Use a new struct array to define the asic information which
asic type needs to be fixed.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
include/drm/amd_asic_type.h