Skip to content

Commit acd8c0b

Browse files
kiram9JohnAZoidberg
authored andcommitted
fwk: fixup lint errors in thermal.c
Signed-off-by: Kieran Levin <ktl@frame.work>
1 parent 4ecf7a2 commit acd8c0b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

baseboard/fwk/thermal.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,13 @@ void board_override_fan_control(int fan, int *temp)
9595
apu_filtered_temp = thermal_filter_get(&apu_filtered);
9696

9797
/* Note this gets the index based on the thermal sensor index */
98-
f75303_get_val_mk(temp_sensors[TEMP_SENSOR_CPU].idx , &temps_mk[1]);
98+
f75303_get_val_mk(temp_sensors[TEMP_SENSOR_CPU].idx, &temps_mk[1]);
9999
if (thermal_params[TEMP_SENSOR_CPU].temp_fan_off &&
100100
thermal_params[TEMP_SENSOR_CPU].temp_fan_max) {
101-
apu_pct = thermal_fan_percent(thermal_params[TEMP_SENSOR_CPU].temp_fan_off * 1000,
102-
thermal_params[TEMP_SENSOR_CPU].temp_fan_max * 1000,
103-
temps_mk[1]);
101+
apu_pct = thermal_fan_percent(
102+
thermal_params[TEMP_SENSOR_CPU].temp_fan_off * 1000,
103+
thermal_params[TEMP_SENSOR_CPU].temp_fan_max * 1000,
104+
temps_mk[1]);
104105
}
105106

106107
if (thermal_params[TEMP_SENSOR_PECI].temp_fan_off &&
@@ -112,7 +113,7 @@ void board_override_fan_control(int fan, int *temp)
112113
}
113114
pct = apu_filtered_pct;
114115

115-
//pct = MAX(apu_pct, apu_filtered_pct);
116+
/*pct = MAX(apu_pct, apu_filtered_pct);*/
116117
new_rpm = fan_percent_to_rpm(fan, pct);
117118
actual_rpm = fan_get_rpm_actual(FAN_CH(fan));
118119

0 commit comments

Comments
 (0)