commit | 920aa8596a56806ad2263326638388da034b5513 | [log] [tgz] |
---|---|---|
author | Amir Samuelov <amirs@codeaurora.org> | Tue Dec 11 19:12:21 2012 +0200 |
committer | Amir Samuelov <amirs@codeaurora.org> | Tue Dec 11 19:12:21 2012 +0200 |
tree | 11d8e46c5e511d879e8c902c31ed4b03ca94bbc2 | |
parent | 8d972c8d4429614215a30aea86f954b8d926347b [diff] |
power: bq28400: Return error on I2C failure when reading RSOC Return non-zero Relative-State-Of-Charge (RSOC) when I2C fails. The battery manager shuts down the device when battery capacity is 0% (and DC is not on-line). The battery interface to user space will return error on I2C failure. Change-Id: I772166746f2c604dd3e10547a108654ee02497c7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>