commit | 6d9ba9354e0d0289461b8b956bd84410d65be731 | [log] [tgz] |
---|---|---|
author | Anirudh Ghayal <aghayal@codeaurora.org> | Mon May 07 13:57:26 2018 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Thu May 17 22:18:11 2018 -0700 |
tree | 0a1db03e177db11198ff77322696ec76b54c21a4 | |
parent | 220df69e4416f1ba16244628bfca42c6ac6ce260 [diff] |
power: qpnp-qg: Update CURRENT_NOW for parallel charging The last_fifo_i alternately samples the current from internal BAT_FET and parallel charger. Instead use the FIFO_I average while reporting CURRENT_NOW when parallel charging is enabled. While at it, use the RTC time as the FIFO timestamp for better co-relation during debug. Change-Id: Iaaf445809b1b0096cc74b5d62c2510640f0482ad Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>