]> 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)
commit7437395dc1671648152908c2495d318ab16f1619
tree967be4c48fac0fc2a3ef2ae540bf4378e4b22bac
parentb21d9c14f9399eaf2228410d6ae9f3ad9411a6f0
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