Power: abx500: Fixed coding style issues
PATCH 1/1 Power: abx500: Fixed coding style issues
Fixed else on new line and made tabs instead of spaces
Signed-off-by Jesper Falk <[email protected]>
--- drivers/power/abx500_chargalg.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
drivers/power/abx500_chargalg.c +6 -7
@@ -227,7 +227,7 @@ enum maxim_ret {* @chg_info: information about connected charger types * @batt_data: data of the battery * @susp_status: current charger suspension status -* @bm: Platform specific battery management information +* @bm: Platform specific battery management information * @curr_status: Current step status for over-current protection * @parent: pointer to the struct abx500 * @chargalg_psy: structure that holds the battery properties exposed by
@@ -362,13 +362,13 @@ static int abx500_chargalg_check_charger_enable(struct abx500_chargalg *di)if (di->chg_info.charger_type &USB_CHG ) {return di->usb_chg->ops.check_enable (di->usb_chg, - di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, - di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); + di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, + di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); }else if ((di->chg_info.charger_type &AC_CHG ) && !(di->ac_chg->external)) {return di->ac_chg->ops.check_enable (di->ac_chg, - di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, - di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); + di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, + di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); }return 0 ; }
@@ -532,8 +532,7 @@ static int abx500_chargalg_kick_watchdog(struct abx500_chargalg *di) di->usb_chg->ops.kick_wd (di->usb_chg);return di->ac_chg->ops.kick_wd (di->ac_chg); - } -else if (di->usb_chg && di->usb_chg->ops.kick_wd && + }else if (di->usb_chg && di->usb_chg->ops.kick_wd && di->chg_info.online_chg &USB_CHG )return di->usb_chg->ops.kick_wd (di->usb_chg);
Signature · 1 line
1.8.5.2