]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bq27x00_battery: Report -ENODATA if bq27000 battery was not calibrated
authorPali Rohár <pali.rohar@gmail.com>
Tue, 1 Nov 2011 00:43:05 +0000 (01:43 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 25 Nov 2011 19:58:16 +0000 (23:58 +0400)
commit4b226c2cf04eb373369d298fa00181b0eec71233
tree63fd6b047b61b29c4e4352a41f4a1f0b4f5dc0b9
parentd66bab3f3a5119084ac0ed010a7eae0000af4f16
bq27x00_battery: Report -ENODATA if bq27000 battery was not calibrated

* CI (Capacity Inaccurate) flag is set after full reset on bq27000 battery
* when is set, all capacity properties should be reported incorrectly,
  because there was no learning cycle and battery was not calibrated
* instead reporting incorrect values, report -ENODATA

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