board/jinlon/thermal.c: Format with clang-format
BRANCH=none
TEST=none
@@ -141,8 +141,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)
{
@@ -168,9 +167,12 @@ int fan_table_to_rpm(int fan, int *temp)
temp[TEMP_SENSOR_3] < prev_tmp[TEMP_SENSOR_3] ||
temp[TEMP_SENSOR_4] < prev_tmp[TEMP_SENSOR_4]) {
for (i = current_level; i > 0; i--) {
- if (temp[TEMP_SENSOR_1] < fan_step_table[i].off[TEMP_SENSOR_1] &&
- temp[TEMP_SENSOR_4] < fan_step_table[i].off[TEMP_SENSOR_4] &&
- temp[TEMP_SENSOR_3] < fan_step_table[i].off[TEMP_SENSOR_3])
+ if (temp[TEMP_SENSOR_1] <
+ fan_step_table[i].off[TEMP_SENSOR_1] &&
+ temp[TEMP_SENSOR_4] <
+ fan_step_table[i].off[TEMP_SENSOR_4] &&
+ temp[TEMP_SENSOR_3] <
+ fan_step_table[i].off[TEMP_SENSOR_3])
current_level = i - 1;
else
break;
@@ -179,9 +181,12 @@ int fan_table_to_rpm(int fan, int *temp)
temp[TEMP_SENSOR_3] > prev_tmp[TEMP_SENSOR_3] ||
temp[TEMP_SENSOR_4] > prev_tmp[TEMP_SENSOR_4]) {
for (i = current_level; i < NUM_FAN_LEVELS; i++) {
- if ((temp[TEMP_SENSOR_1] > fan_step_table[i].on[TEMP_SENSOR_1] &&
- temp[TEMP_SENSOR_4] > fan_step_table[i].on[TEMP_SENSOR_4]) ||
- temp[TEMP_SENSOR_3] > fan_step_table[i].on[TEMP_SENSOR_3])
+ if ((temp[TEMP_SENSOR_1] >
+ fan_step_table[i].on[TEMP_SENSOR_1] &&
+ temp[TEMP_SENSOR_4] >
+ fan_step_table[i].on[TEMP_SENSOR_4]) ||
+ temp[TEMP_SENSOR_3] >
+ fan_step_table[i].on[TEMP_SENSOR_3])
current_level = i + 1;
else
break;
@@ -212,10 +217,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));
}
}
