diff options
author | Philip Chen <philipchen@google.com> | 2018-03-13 12:38:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-14 04:07:09 -0700 |
commit | ccea4b67f2e36a505ddf546bde284f75d728add0 (patch) | |
tree | 7ef350b4cff0613e6ef31e8d7474f5e9d3cbe8cd /test/pingpong.c | |
parent | e325981c7d39f7160fafd4681384e410a137fa92 (diff) | |
download | chrome-ec-ccea4b67f2e36a505ddf546bde284f75d728add0.tar.gz |
battery/max17055: Fix the unit of cycle count
The cycle counts we get from battery_cycle_count()
is in the unit of 1%.
But we should convert it to absolute count to match
the behavior of a smart battery.
BUG=b:74576000
BRANCH=scarlet
TEST='ectool battery' shows reasonable cycle counts
Change-Id: I9d351f8766c90e0addb72a088917ddadfa6c840a
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/961303
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'test/pingpong.c')
0 files changed, 0 insertions, 0 deletions