]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: sbs-battery: add PEC support
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 5 Jun 2020 23:06:25 +0000 (01:06 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 19 Jun 2020 16:39:43 +0000 (18:39 +0200)
commit4b4f31aa14de91373f673f50eddd77cac465afb8
tree21670d30da79b210ebc9a48bd3093391d68caa46
parent24ea3fba8df8a94431d5b49a76a8607aa5007572
power: supply: sbs-battery: add PEC support

SBS batteries optionally have support for PEC. This enables
PEC handling based on the implemented SBS version as suggested
by the standard. The support for PEC is re-evaluated when the
battery is hotplugged into the system, since there might be
systems supporting batteries from different SBS generations.

Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-battery.c