Skip to content

Commit 20cd25a

Browse files
committed
azalea: fit coding style
Signed-off-by: elmo_lan <hplan1112@gmail.com>
1 parent 834fca4 commit 20cd25a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

zephyr/program/lotus/azalea/src/cpu_power.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ static void update_adapter_power_limit(int battery_percent, int active_mpower)
146146
MIN(43000, (active_mpower * 85 / 100) + battery_mwatt_type - POWER_ROP);
147147
power_limit[FUNCTION_POWER].mwatt[TYPE_FPPT] =
148148
MIN(53000, (active_mpower * 85 / 100) + battery_mwatt_type - POWER_ROP);
149-
power_limit[FUNCTION_POWER].mwatt[TYPE_P3T] =
150-
(active_mpower * 95 / 100) + battery_mwatt_type - POWER_ROP - POWER_PORT_COST;
149+
power_limit[FUNCTION_POWER].mwatt[TYPE_P3T] = (active_mpower * 95 / 100)
150+
+ battery_mwatt_type - POWER_ROP - POWER_PORT_COST;
151151
} else {
152152
/* ADP > 55W and Battery percentage <= 40% */
153153
power_limit[FUNCTION_POWER].mwatt[TYPE_SPL] = 30000;
@@ -342,9 +342,10 @@ static void initial_soc_power_limit(void)
342342
power_limit[FUNCTION_SLIDER].mwatt[TYPE_SPPT] = 33000;
343343
power_limit[FUNCTION_SLIDER].mwatt[TYPE_FPPT] =
344344
battery_mwatt_type - POWER_ROP - POWER_PORT_COST;
345-
power_limit[FUNCTION_SLIDER].mwatt[TYPE_P3T] = battery_mwatt_p3t - POWER_ROP - POWER_PORT_COST;
345+
power_limit[FUNCTION_SLIDER].mwatt[TYPE_P3T] =
346+
battery_mwatt_p3t - POWER_ROP - POWER_PORT_COST;
346347
power_limit[FUNCTION_POWER].mwatt[TYPE_P3T] =
347-
battery_mwatt_p3t - POWER_ROP - POWER_PORT_COST;
348+
battery_mwatt_p3t - POWER_ROP - POWER_PORT_COST;
348349
}
349350
DECLARE_HOOK(HOOK_INIT, initial_soc_power_limit, HOOK_PRIO_INIT_I2C);
350351

0 commit comments

Comments
 (0)