commit | 248efcf00602f0282587999bcc221a872bd72530 | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Wed Dec 14 17:38:52 2016 +0100 |
committer | Sebastian Reichel <sre@kernel.org> | Wed Jan 04 21:59:17 2017 +0100 |
tree | 8c38b0b13a6bd5c99d5e0fe79c622d0f394fa1ad | |
parent | 4949fc5e071f8e8d8122e0b16cf6a2ec1ca36258 [diff] |
power: supply: axp288_fuel_gauge: Read 12 bit values 2 registers at a time In order for the MSB -> LSB latching to work correctly we must read the 2 8 bit registers of a 12 bit value in one consecutive read. This fixes voltage_ocv reporting inconsistent values on my tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>