diff options
author | Yuanjiang Yu <yuanjiang.yu@unisoc.com> | 2019-07-31 13:00:25 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2019-09-02 23:49:49 +0300 |
commit | 7384b0e7668f722fcf7abe56f61a7212debd0180 (patch) | |
tree | ddc1fa4eea24ad54b3c71ea2258a30d2f302336d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 168e68d072756d631a210342d0429c969501b7cf (diff) | |
download | linux-7384b0e7668f722fcf7abe56f61a7212debd0180.tar.xz |
power: supply: sc27xx: Fix the the accuracy issue of coulomb calculation
The Spreadtrum fuel gauge will multiply by 2 for counting the coulomb
counter to improve the accuracy, which means the value saved in fuel
gauge is: coulomb counter * 2 * 1000ma_adc. Thus fix the conversion
formular to improve the accuracy of calculating the battery capacity.
Signed-off-by: Yuanjiang Yu <yuanjiang.yu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions