projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b39f03
)
drm/amd/powerplay: Tidy up smu7_fan_ctrl_get_fan_speed_rpm()
author
Tom St Denis
<
[email protected]
>
Tue, 12 Sep 2017 13:51:36 +0000
(09:51 -0400)
committer
Alex Deucher
<
[email protected]
>
Wed, 13 Sep 2017 16:10:08 +0000
(12:10 -0400)
Signed-off-by: Tom St Denis <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
index a491f1201fdad5cc884916f9fc1c0c9ba1c04f28..be8367997e75ef91620c8319c2eb9048eb40a3b5 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
@@
-86,8
+86,7
@@
int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed)
uint32_t crystal_clock_freq;
if (hwmgr->thermal_controller.fanInfo.bNoFan ||
- (hwmgr->thermal_controller.fanInfo.
- ucTachometerPulsesPerRevolution == 0))
+ !hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution)
return -ENODEV;
tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC,