@@ -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}
349350DECLARE_HOOK (HOOK_INIT , initial_soc_power_limit , HOOK_PRIO_INIT_I2C );
350351
0 commit comments