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)
* 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>

No differences found