summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c
diff options
context:
space:
mode:
authorRex Zhu2016-06-29 13:32:50 +0200
committerAlex Deucher2016-07-07 21:06:04 +0200
commit2a9126b94a4765b23fb85211aca47a8fa8b11fa2 (patch)
tree08d0083b13c129c66cf74c02c915f98ebda8268b /drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c
parentdrm/amdgpu: stop disabling irqs when it isn't neccessary (diff)
downloadkernel-qcow2-linux-2a9126b94a4765b23fb85211aca47a8fa8b11fa2.tar.gz
kernel-qcow2-linux-2a9126b94a4765b23fb85211aca47a8fa8b11fa2.tar.xz
kernel-qcow2-linux-2a9126b94a4765b23fb85211aca47a8fa8b11fa2.zip
drm/amd/powerplay: functions's return state was reversed
In commit 195567e99bdf6491a370b71a1dcf6b4c891495d7, use true/false instead of 1/0 to fix build warning. But the original logic: '0' means true and '1' means false. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c4
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 bf4e18fd3872..5d70e2c47faf 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c
@@ -552,13 +552,13 @@ static bool atomctrl_lookup_gpio_pin(
pin_assignment->ucGpioPinBitShift;
gpio_pin_assignment->us_gpio_pin_aindex =
le16_to_cpu(pin_assignment->usGpioPin_AIndex);
- return false;
+ return true;
}
offset += offsetof(ATOM_GPIO_PIN_ASSIGNMENT, ucGPIO_ID) + 1;
}
- return true;
+ return false;
}
/**