summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-03-27 13:37:21 -0700
committerBill Richardson <wfrichar@chromium.org>2014-03-28 15:23:04 +0000
commit915137770896e9ded6068c5969479849f02ca95c (patch)
treef94a1452aa24435d8496aa8e12b01098c752fbbb /board
parent91a5fa01940764832c1b974d2022bee4e744f09c (diff)
downloadchrome-ec-915137770896e9ded6068c5969479849f02ca95c.tar.gz
Add charger_get_params() function to query charger state.
This returns all the parameters of the charger that must be monitored frequently. While some of the fields are charger-specific, all of the parameters are present in all supported chargers. Nothing uses this yet. BUG=chrome-os-partner:20881 BRANCH=ToT TEST=make buildall -j All targets build; all tests pass. Change-Id: Id3e00532469b193aeab3acf93e94afe3ffb8c6b6 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/191985 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/host/charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/host/charger.c b/board/host/charger.c
index 8a5a2e3c53..0e72fe8fb4 100644
--- a/board/host/charger.c
+++ b/board/host/charger.c
@@ -36,7 +36,7 @@ const struct charger_info *charger_get_info(void)
}
-int charger_get_status(int *status)
+int charger_get_status(int *status)
{
*status = CHARGER_LEVEL_2;
if (mock_option & CHARGE_FLAG_INHIBIT_CHARGE)