sbs-battery: add ability to get battery capacity
authorJoshua Clayton <stillcompiling@gmail.com>
Thu, 11 Aug 2016 16:59:12 +0000 (09:59 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 21:14:55 +0000 (23:14 +0200)
commit957cb720518341abf19009044f240a6342bdd039
tree026620627f51333a35ef9c2e16511f47a4d385c0
parent492ff9d8f5fa6ad44288050238b7961d457a239d
sbs-battery: add ability to get battery capacity

Battery capacity level is a standard feature of sbs battery
That can be used to tell what the remainig battery capacity is, and
can tell if the battery has not been calibrated/initialized, which makes
the capacity and charging/discharging percentages invalid.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/sbs-battery.c