diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2018-11-12 18:52:38 +0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2018-12-05 23:54:01 +0100 |
commit | 872bcf83ec0ae266ebf3359061fc77a53b2ac5d7 (patch) | |
tree | 7ad12acc390c1118f3554f3fea839cc668bf6364 /drivers/power | |
parent | a8aaff6be08921f1d200170ce02d36cec0e2300d (diff) | |
download | linux-872bcf83ec0ae266ebf3359061fc77a53b2ac5d7.tar.gz linux-872bcf83ec0ae266ebf3359061fc77a53b2ac5d7.tar.bz2 linux-872bcf83ec0ae266ebf3359061fc77a53b2ac5d7.zip |
power: supply: sc2731_charger: Free battery information
Free battery information in case of adding battery OCV tables.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/sc2731_charger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/supply/sc2731_charger.c b/drivers/power/supply/sc2731_charger.c index 49b3f0c90224..335cb857ef30 100644 --- a/drivers/power/supply/sc2731_charger.c +++ b/drivers/power/supply/sc2731_charger.c @@ -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 */ |