commit | 6f074bc878dc9b00c0df0bf3a8cb1d9e294cd881 | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Wed Dec 14 17:38:50 2016 +0100 |
committer | Sebastian Reichel <sre@kernel.org> | Wed Jan 04 21:59:08 2017 +0100 |
tree | 808e014564adab1d9558d2ee62fa4b254def4865 | |
parent | 94c7073fe32a3254ac6bd3d194aa5ea230fed5c4 [diff] |
power: supply: axp288_fuel_gauge: Fix fuel_gauge_reg_readb return on error If reading the register fails, return the actual error code, instead of the uninitialized val variable; Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>