diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2014-04-23 09:50:42 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-04-23 22:59:51 +0000 |
commit | 2e7ea4efdb56af411f13e0224a945a67dd6f0dcb (patch) | |
tree | a80a84201c14427adc1acab5a240125563eb0448 /include/battery.h | |
parent | fcf26a43ab1737acc873afcc1b61b4fb20389966 (diff) | |
download | chrome-ec-2e7ea4efdb56af411f13e0224a945a67dd6f0dcb.tar.gz |
battery: move cut-off commands to common/battery.cstabilize-5791.0.B
So that host and EC commands will be defined in common/battery.c.
The board-specific battery.c can focus on the proprietary method.
BUG=chrome-os-partner:28248
BRANCH=tot,nyan
TEST=make buildall runtest
Tested "cutoff" in EC console on big.
Change-Id: I213c0d601d0241c8dea309d6ac60c72452d2d100
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/196621
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h index 61c9dee20f..4201d1d658 100644 --- a/include/battery.h +++ b/include/battery.h @@ -268,4 +268,11 @@ int battery_device_chemistry(char *dest, int size); */ int battery_manufacturer_date(int *year, int *month, int *day); +/** + * Call board-specific cut-off function. + * + * @return EC_RES_INVALID_COMMAND if the battery doesn't support. + */ +int board_cut_off_battery(void); + #endif /* __CROS_EC_BATTERY_H */ |