diff options
author | Tony Lindgren <tony@atomide.com> | 2019-10-17 01:41:21 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2019-10-20 21:26:20 +0300 |
commit | 8b0134cc14b9d4dba4477489c11f7c634c382e3e (patch) | |
tree | 172da5df295f51dc9252e0f24cf5745a174a9c68 /drivers/power/supply/cpcap-charger.c | |
parent | 50fc99f83f102c60a9429f451594019a6a978103 (diff) | |
download | linux-8b0134cc14b9d4dba4477489c11f7c634c382e3e.tar.xz |
power: supply: cpcap-battery: Fix handling of lowered charger voltage
With cpcap-charger now using 4.2V instead of 4.35V, we never reach
POWER_SUPPLY_CAPACITY_LEVEL_FULL unless we handle the lowered charge
voltage.
Let's do this by implementing POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE,
and assume anything at that level or higher is a full battery.
Let's also make it configurable for users who may still want to
reconfigure it, and notify the charger if supported by the charger.
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/cpcap-charger.c')
0 files changed, 0 insertions, 0 deletions