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)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 14 Jan 2012 17:45:12 +0000 (19:45 +0200)
* 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