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>
1 file changed