From 86835f7067b7ce26431ca459be3d59662736275f Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Wed, 17 Dec 2014 10:36:48 -0800 Subject: charge_manager: Allow board to reject a selected charge port Modify board_set_active_charge_port to return status indicating whether the selected charge port was rejected. If rejected, zero out its available charge and attempt to select a different charge port. Also, reduce the length of related console prints. BUG=chrome-os-partner:34677 TEST=Manual on Samus. Plug C-to-Arec into port 1, verify that charge manager does not select port 1 as active and charging icon is not seen in OS. BRANCH=Samus. Change-Id: I56e3337f90c04b93ef7cc9873af6ee0f4b1ffc7d Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/236361 Reviewed-by: Alec Berg --- board/host/board.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'board/host') diff --git a/board/host/board.h b/board/host/board.h index 0ae8e0c452..d33a4a56dc 100644 --- a/board/host/board.h +++ b/board/host/board.h @@ -56,10 +56,4 @@ enum charge_supplier { /* supplier_priority table defined in board.c */ extern const int supplier_priority[]; -/* Set the active charge port. */ -void board_set_active_charge_port(int charge_port); - -/* Set the charge current limit. */ -void board_set_charge_limit(int charge_ma); - #endif /* __BOARD_H */ -- cgit v1.2.1