OSDN Git Service

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)
commit7222bd603dd2fe607794acd0c53025da1dbde21f
tree21670d30da79b210ebc9a48bd3093391d68caa46
parent05e0430971543e6aeb328df1226dc52930171445
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