diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-07-15 14:38:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-17 23:18:06 +0000 |
commit | a5a82418126ee6cadff69d9487c43edc1ccea097 (patch) | |
tree | 6fc2315bc76233b19bca4bf74157c3937d3e9a6c /util/lbcc.c | |
parent | 41fe226267e3a8c1cb61f9f25123eaea900b4971 (diff) | |
download | chrome-ec-a5a82418126ee6cadff69d9487c43edc1ccea097.tar.gz |
battery: Fix obtaining battery manufacture date
* Fix the typo: should be SB_MANUFACTURE_DATE (manufacture without r)
* Fix the register, i.e. SB_MANUFACTURE_DATE, not SB_SPECIFICATION_INFO
* Fix the format parsing. The LSB of year is bit-9, not bit-8.
BRANCH=None
BUG=b:160784792
TEST=With the later CL, checked the manufacture date.
Change-Id: I5b5f2bfefec4bbe700bb1ec0d9d6048123f4ad16
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2300688
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Diffstat (limited to 'util/lbcc.c')
0 files changed, 0 insertions, 0 deletions