diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2016-12-21 16:27:09 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-02 16:16:59 -0800 |
commit | 66ea614158975f7db9c0eeb141bb54c935a4ed61 (patch) | |
tree | 28e70e57d7ab806b0a6f17fbe040eb3482eca449 /include/battery_smart.h | |
parent | 18bb7c7971f4cb7c8d705f34ecd2797ce4e51023 (diff) | |
download | chrome-ec-66ea614158975f7db9c0eeb141bb54c935a4ed61.tar.gz |
smart_battery: Cleanup smart battery & SB users code
BUG=chrome-os-partner:61173
BRANCH=none
TEST=Manually tested on Reef. Battery info works.
Change-Id: I6e867eee38885186f8e63a934f52e826f0cf72fd
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/422998
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/battery_smart.h')
-rw-r--r-- | include/battery_smart.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/battery_smart.h b/include/battery_smart.h index 94b291b4d9..3f3ee869fd 100644 --- a/include/battery_smart.h +++ b/include/battery_smart.h @@ -141,11 +141,13 @@ int sb_read(int cmd, int *param); /* Read sequence from battery */ -int sb_read_string(int port, int slave_addr, int offset, uint8_t *data, - int len); +int sb_read_string(int offset, uint8_t *data, int len); /* Write to battery */ int sb_write(int cmd, int param); +/* Read manufactures access data from the battery */ +int sb_read_mfgacc(int cmd, int block, uint8_t *data, int len); + #endif /* __CROS_EC_BATTERY_SMART_H */ |