]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc6baeda28b7615c10c09e71a46a7f39921191f3
tree967be4c48fac0fc2a3ef2ae540bf4378e4b22bac
parent216ca379a33fd7cbbd137460da3f8ac641421849
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