power: supply: add battery parameters
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Fri, 8 May 2020 15:47:20 +0000 (18:47 +0300)
committerSebastian Reichel <sre@kernel.org>
Sun, 10 May 2020 00:35:49 +0000 (02:35 +0200)
commit5a63b7ba50fd6b7a897bf9353dbf31d579cfe116
tree31bd0f26002b6cd328f4074937572f1fed2b577d
parente3420b49949c79d6182dd8128fa7a3958da01b07
power: supply: add battery parameters

Add parsing of new device-tree battery bindings.

     - trickle-charge-current-microamp
     - precharge-upper-limit-microvolt
     - re-charge-voltage-microvolt
     - over-voltage-threshold-microvolt

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c
include/linux/power_supply.h