drm/amdgpu: fix byteorder error in amdgpu discovery
authorYang Wang <KevinYang.Wang@amd.com>
Wed, 24 Nov 2021 04:26:02 +0000 (12:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 20:13:54 +0000 (15:13 -0500)
commitfd08953b2de911f32c06aedbc8ad111c2fd0168b
treed0feb98e69ff5dc0d16a365d88fac5e99117417a
parentc4ef8a73bfc84fad3de46b38f313c0b159103b28
drm/amdgpu: fix byteorder error in amdgpu discovery

fix some byteorder issues about amdgpu discovery.
This will result in running errors on the big end system. (e.g:MIPS)

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c