Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b39f031 authored by Tom St Denis's avatar Tom St Denis Committed by Alex Deucher
Browse files

drm/amd/powerplay: Tidy up smu7_fan_ctrl_get_fan_speed_info()

parent 4e55eb38
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -37,8 +37,7 @@ int smu7_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr,
	fan_speed_info->min_percent = 0;
	fan_speed_info->min_percent = 0;
	fan_speed_info->max_percent = 100;
	fan_speed_info->max_percent = 100;


	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
	if (PP_CAP(PHM_PlatformCaps_FanSpeedInTableIsRPM) &&
			PHM_PlatformCaps_FanSpeedInTableIsRPM) &&
	    hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution) {
	    hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution) {
		fan_speed_info->supports_rpm_read = true;
		fan_speed_info->supports_rpm_read = true;
		fan_speed_info->supports_rpm_write = true;
		fan_speed_info->supports_rpm_write = true;