]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0dbcaa37e0cd3007e07919866aa83c4dd662b41
treed647e23360f681a56c5ea12281023660912854a8
parent2da6fdb80eb2cc98c415358c0f2c57a635ba0d73
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