drm/amdgpu/pp: fix endian swapping in atomctrl_get_voltage_range
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jun 2018 17:51:06 +0000 (12:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:39:51 +0000 (16:39 -0500)
commit594c34cc6f31807f23aae5c9cec6dea31d782f90
tree967be4c48fac0fc2a3ef2ae540bf4378e4b22bac
parentc9037d44390cc1ef7ec490c63ec8a4ee92a57925
drm/amdgpu/pp: fix endian swapping in atomctrl_get_voltage_range

Need to swap before doing arthimetic on the values.

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c