]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: sbs-battery: add PEC support
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 13 May 2020 18:56:04 +0000 (20:56 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 28 May 2020 22:39:16 +0000 (00:39 +0200)
commitf33a2d80a21f99746b24fa42f77ab5aa95892b79
treee428a5180447805819165e87d40029c5c52ff7fa
parent47279e0c1dbc20f9981c992eeb483c72ba147aa2
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.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-battery.c