power: supply: cw2015: Add CHARGE_NOW support
authorMartin Ashby <martin@ashbysoft.com>
Thu, 18 Feb 2021 12:42:50 +0000 (07:42 -0500)
committerSebastian Reichel <sre@kernel.org>
Sat, 6 Mar 2021 17:39:05 +0000 (18:39 +0100)
commitbf3841073bf34c9568ee5d6a6020b3902b3eef81
tree696214b381f580b9054e089573d813b90680775b
parentc018b5322a449ec98888b734805d0bc0ed7b2da0
power: supply: cw2015: Add CHARGE_NOW support

CHARGE_NOW is expected by some user software (such as waybar)
instead of 'CAPACITY', in order to correctly calculate remaining battery
life.

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
Reviewed-by: Tobias Schramm <t.schramm@manjaro.org>
Tested-by: Tobias Schramm <t.schramm@manjaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cw2015_battery.c