diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-07-28 09:46:28 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-29 14:36:46 -0400 |
commit | 649663cf6380fffdfdeb52ab2b276caa6bcb3e51 (patch) | |
tree | 4ea1c9c37a0c57448da38b8a989718c532ce6e3f /drivers/gpu | |
parent | fc94d32dbf4f95353c89a51c1b3bef11c4ae30bd (diff) |
drm/amdgpu/powerplay: partial revert of endian fixes
This fixes a warning on big endian. Bitfields need to
be handled properly.
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c index e2aece361eb0..26f3e30d0fef 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | |||
@@ -1289,9 +1289,9 @@ int atomctrl_set_ac_timing_ai(struct pp_hwmgr *hwmgr, uint32_t memory_clock, | |||
1289 | int result; | 1289 | int result; |
1290 | 1290 | ||
1291 | memory_clock_parameters.asDPMMCReg.ulClock.ulClockFreq = | 1291 | memory_clock_parameters.asDPMMCReg.ulClock.ulClockFreq = |
1292 | cpu_to_le32(memory_clock & SET_CLOCK_FREQ_MASK); | 1292 | memory_clock & SET_CLOCK_FREQ_MASK; |
1293 | memory_clock_parameters.asDPMMCReg.ulClock.ulComputeClockFlag = | 1293 | memory_clock_parameters.asDPMMCReg.ulClock.ulComputeClockFlag = |
1294 | cpu_to_le32(ADJUST_MC_SETTING_PARAM); | 1294 | ADJUST_MC_SETTING_PARAM; |
1295 | memory_clock_parameters.asDPMMCReg.ucMclkDPMState = level; | 1295 | memory_clock_parameters.asDPMMCReg.ucMclkDPMState = level; |
1296 | 1296 | ||
1297 | result = cgs_atom_exec_cmd_table | 1297 | result = cgs_atom_exec_cmd_table |