]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bq27x00_battery: Fixup nominal available capacity reporting
authorPali Rohár <pali.rohar@gmail.com>
Sat, 10 Nov 2012 14:42:48 +0000 (15:42 +0100)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 19 Nov 2012 00:02:41 +0000 (16:02 -0800)
commite59ec4a1899dfff007d91b30f00e7211731b816b
treee9480fd0f47be894769a2999e03d80d0eac033eb
parent6c47a3e00c6e4f3cdac7566c1480de34d9e32e07
bq27x00_battery: Fixup nominal available capacity reporting

We should not not report nominal available capacity if battery is not
calibrated, as we don't want to represent bogus values in the sysfs and
confuse userland.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/bq27x00_battery.c