mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
power: supply: sc2731_charger: Free battery information
Free battery information in case of adding battery OCV tables. Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
a8aaff6be0
commit
872bcf83ec
1 changed files with 2 additions and 0 deletions
|
|
@ -408,6 +408,8 @@ static int sc2731_charger_hw_init(struct sc2731_charger_info *info)
|
|||
vol_val = (term_voltage - 4200) / 100;
|
||||
else
|
||||
vol_val = 0;
|
||||
|
||||
power_supply_put_battery_info(info->psy_usb, &bat_info);
|
||||
}
|
||||
|
||||
/* Set charge termination current */
|
||||
|
|
|
|||
Loading…
Reference in a new issue