summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-04-22 12:31:27 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-04-23 07:21:35 -0700
commit1fda1785673f8c6c0452d25945ad7f93f7d73a9c (patch)
tree97489e5e134e809a0fa7b1c24b1e9a8765ffbf31 /driver
parentb1cc0bc684ad2377716f2ebc11b9f0a9484fa52a (diff)
downloadchrome-ec-1fda1785673f8c6c0452d25945ad7f93f7d73a9c.tar.gz
mm8013: implement battery_serial_number
Return ERROR_UNIMPLEMENTED causes "ectool battery" to fail. Need to return some dummy value. BUG=b:131034963 TEST=ectool battery BRANCH=None Change-Id: I66df131db3b532efd56afab87e97bb3def2fb01f Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/1575350 Commit-Ready: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/battery/mm8013.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/battery/mm8013.c b/driver/battery/mm8013.c
index b3034464e7..c445bc42c6 100644
--- a/driver/battery/mm8013.c
+++ b/driver/battery/mm8013.c
@@ -132,7 +132,8 @@ int battery_device_chemistry(char *dest, int size)
int battery_serial_number(int *serial)
{
- return EC_ERROR_UNIMPLEMENTED;
+ *serial = 0xFFFFFFFF;
+ return EC_SUCCESS;
}
int battery_design_voltage(int *voltage)