summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-08-01 08:08:51 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-05 06:39:09 +0000
commit0e1b12e42b852314b472998649ed3308640fec3f (patch)
treedde1556bb1caa3cc7e1e65490bda8843c9a89810 /include
parent3d07d8f54721123693624ce35235f1afc8b75b54 (diff)
downloadchrome-ec-0e1b12e42b852314b472998649ed3308640fec3f.tar.gz
battery: Calculate the display charge percentage
It doesn't require the powerd's full factory to be 100%. Also refine the comment on the powerd's equation to make it more understandable. BRANCH=None BUG=b:162604872 TEST=With the follower CL which updates the powerd's full factor value, checked EC showing the same Display percentage as the UI. Change-Id: I50ae7c38c423722188d892f91f4fc93d4d5f84e1 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335886 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 91a58aa9e9..95844382b5 100644
--- a/include/config.h
+++ b/include/config.h
@@ -606,8 +606,7 @@
#define CONFIG_BATT_HOST_SHUTDOWN_PERCENTAGE 4
/*
- * Powerd's full_factor. It has to be 100(%) to get display battery percentage.
- * Otherwise, display percentages will be always zero.
+ * Powerd's full_factor.
*/
#define CONFIG_BATT_HOST_FULL_FACTOR 94