diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-07-10 14:05:54 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-14 22:39:36 +0000 |
commit | ac1cba419ab507163dcb6dc9d6be1401f3f1f518 (patch) | |
tree | 3bf00ed663cfb4fd5033bd954f343ef938250ce6 /board/lucid/board.c | |
parent | 7015336ea81aa1d57b62088a792d1c13cbc25d57 (diff) | |
download | chrome-ec-ac1cba419ab507163dcb6dc9d6be1401f3f1f518.tar.gz |
cleanup: remove board_discharge_on_ac() unless custom func needed
Remove duplicate board_discharge_on_ac() functions and create
CONFIG_CHARGER_DISCHARGE_ON_AC_CUSTOM for boards that have a
unique implementation of board_discharge_on_ac().
BUG=chrome-os-partner:42294
BRANCH=none
TEST=make -j buildall.
load on samus and test 'ectool chargecontrol discharge' forces
discharging on AC, and 'ectool chargecontrol normal' resumes normal
charging.
Change-Id: I2b7c04b9278d07748d6d41798ceab1a7e90684e4
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/284911
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/lucid/board.c')
-rw-r--r-- | board/lucid/board.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/board/lucid/board.c b/board/lucid/board.c index fc83e71c7a..c9ae07c65d 100644 --- a/board/lucid/board.c +++ b/board/lucid/board.c @@ -145,26 +145,3 @@ enum battery_present battery_is_present(void) { return gpio_get_level(GPIO_BAT_PRESENT) ? BP_YES : BP_NO; } - -static int discharging_on_ac; - -/** - * Discharge battery when on AC power for factory test. - */ -int board_discharge_on_ac(int enable) -{ - int rv = charger_discharge_on_ac(enable); - - if (rv == EC_SUCCESS) - discharging_on_ac = enable; - - return rv; -} - -/** - * Check if we are discharging while connected to AC - */ -int board_is_discharging_on_ac(void) -{ - return discharging_on_ac; -} |