power: supply: sc27xx: Add fuel gauge calibration
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 14 Nov 2018 09:07:05 +0000 (17:07 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 5 Dec 2018 23:54:22 +0000 (00:54 +0100)
commit65c9fab7bc4b3a103bcac248e148af4a2efc17fe
treed647e23360f681a56c5ea12281023660912854a8
parent6be57bd2badfc05892f266076c6321c4a9c2431d
power: supply: sc27xx: Add fuel gauge calibration

This patch adds support to read calibration values from the eFuse controller
to calibrate the ADC values corresponding to current and voltage, which can
make the current and voltage data more accurate.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc27xx_fuel_gauge.c