drm/amd: Optimize SRIOV switch/case for PSP microcode load
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 21:58:52 +0000 (15:58 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:57 +0000 (14:32 -0500)
commit62a27480b78ad0f7e80c844a3a93974051579983
tree8394b0eba8edb6dcdc56ff2f7ff282675779184a
parent32806038aa7634635eb46f941979b6f6fda5a462
drm/amd: Optimize SRIOV switch/case for PSP microcode load

Now that IP version decoding is used, a number of case statements
can be combined.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c