common/charger.c: Format with clang-format
BRANCH=none
TEST=none
@@ -644,12 +644,16 @@ enum ec_error_list charger_set_hw_ramp(int enable)
if (enable) {
/* Check if this is the active chg chip. */
if (chgnum == charge_get_active_chg_chip())
- rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 1);
- /* This is not the active chg chip, disable hw_ramp. */
+ rv = chg_chips[chgnum].drv->set_hw_ramp(
+ chgnum, 1);
+ /* This is not the active chg chip, disable
+ * hw_ramp. */
else
- rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 0);
+ rv = chg_chips[chgnum].drv->set_hw_ramp(
+ chgnum, 0);
} else
- rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 0);
+ rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum,
+ 0);
}
}
@@ -705,8 +709,7 @@ int chg_ramp_get_current_limit(void)
enum ec_error_list charger_set_vsys_compensation(int chgnum,
struct ocpc_data *ocpc,
- int current_ma,
- int voltage_mv)
+ int current_ma, int voltage_mv)
{
if ((chgnum < 0) || (chgnum >= board_get_charger_chip_count())) {
CPRINTS("%s(%d) Invalid charger!", __func__, chgnum);
