diff options
author | Yuanjiang Yu <[email protected]> | 2019-07-31 18:00:26 +0800 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2019-09-02 22:59:50 +0200 |
commit | 580665279fb6a16eb119ec80a5be1b3ec7a641a0 (patch) | |
tree | be9a721e6da270f8237e336c612a4998a74b658e /security/selinux/hooks.c | |
parent | ff062d06948c012cbfd6f5947b599be5ea1c3799 (diff) |
power: supply: sc27xx: Optimize the battery capacity calibration
This patch factors out the capacity calibration into one single function
to calibrate the battery capacity, and adding more abnormal cases to
calibrate the capacity when the OCV value is not matchable with current
capacity.
Moreover we also allow to calibrate the capacity when charger magager
tries to get current capacity to make sure we give a correct capacity
for userspace.
Signed-off-by: Yuanjiang Yu <[email protected]>
Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions