Commit 872bcf83 authored by Baolin Wang's avatar Baolin Wang Committed by Sebastian Reichel

power: supply: sc2731_charger: Free battery information

Free battery information in case of adding battery OCV tables.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent a8aaff6b
...@@ -408,6 +408,8 @@ static int sc2731_charger_hw_init(struct sc2731_charger_info *info) ...@@ -408,6 +408,8 @@ static int sc2731_charger_hw_init(struct sc2731_charger_info *info)
vol_val = (term_voltage - 4200) / 100; vol_val = (term_voltage - 4200) / 100;
else else
vol_val = 0; vol_val = 0;
power_supply_put_battery_info(info->psy_usb, &bat_info);
} }
/* Set charge termination current */ /* Set charge termination current */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment