board/redrix/thermal.c: Format with clang-format
BRANCH=none
TEST=none
@@ -129,8 +129,7 @@ static const struct fan_step fan_table_tablet[] = {
#define NUM_FAN_LEVELS ARRAY_SIZE(fan_table_clamshell)
-BUILD_ASSERT(ARRAY_SIZE(fan_table_clamshell) ==
- ARRAY_SIZE(fan_table_tablet));
+BUILD_ASSERT(ARRAY_SIZE(fan_table_clamshell) == ARRAY_SIZE(fan_table_tablet));
int fan_table_to_rpm(int fan, int *temp)
{
@@ -158,7 +157,8 @@ int fan_table_to_rpm(int fan, int *temp)
if (temp[TEMP_SENSOR_1_DDR] <
fan_step_table[i].off[TEMP_SENSOR_1_DDR] &&
temp[TEMP_SENSOR_3_CHARGER] <
- fan_step_table[i].off[TEMP_SENSOR_3_CHARGER] &&
+ fan_step_table[i]
+ .off[TEMP_SENSOR_3_CHARGER] &&
temp[TEMP_SENSOR_2_SOC] <
fan_step_table[i].off[TEMP_SENSOR_2_SOC])
current_level = i - 1;
@@ -173,7 +173,8 @@ int fan_table_to_rpm(int fan, int *temp)
if ((temp[TEMP_SENSOR_1_DDR] >
fan_step_table[i].on[TEMP_SENSOR_1_DDR] &&
temp[TEMP_SENSOR_3_CHARGER] >
- fan_step_table[i].on[TEMP_SENSOR_3_CHARGER]) ||
+ fan_step_table[i]
+ .on[TEMP_SENSOR_3_CHARGER]) ||
temp[TEMP_SENSOR_2_SOC] >
fan_step_table[i].on[TEMP_SENSOR_2_SOC])
current_level = i + 1;
@@ -206,10 +207,8 @@ int fan_table_to_rpm(int fan, int *temp)
void board_override_fan_control(int fan, int *tmp)
{
- if (chipset_in_state(CHIPSET_STATE_ON |
- CHIPSET_STATE_ANY_SUSPEND)) {
+ if (chipset_in_state(CHIPSET_STATE_ON | CHIPSET_STATE_ANY_SUSPEND)) {
fan_set_rpm_mode(FAN_CH(fan), 1);
- fan_set_rpm_target(FAN_CH(fan),
- fan_table_to_rpm(fan, tmp));
+ fan_set_rpm_target(FAN_CH(fan), fan_table_to_rpm(fan, tmp));
}
}
