summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2013-07-24 08:22:48 -0700
committerChromeBot <chrome-bot@google.com>2013-07-24 13:07:13 -0700
commit6c280b1b324d56416732ff532f0d8d69d2dbdfad (patch)
treeb31a23b435b8174eb4c187cd80c6280257e00528 /include/charge_state.h
parent7b95d397feab540fa35d47ce810628e03af34e4b (diff)
downloadchrome-ec-6c280b1b324d56416732ff532f0d8d69d2dbdfad.tar.gz
Move TPSChrome charging temperature range to battery pack
This change moves vendor specific temperature ranges to battery pack files or board setup files. And added a host test case to verify that does not change x86 smart battery charging state machine behavior. BUG=chrome-os-partner:21181 BRANCH=None TEST=manual build test: util/ecmakeall.sh hosttests: make hosttests && make runtests Change-Id: I48e76826b5555f64b78e3c063ce5f02416c72aa2 Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/62978 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'include/charge_state.h')
-rw-r--r--include/charge_state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index bd8f576b55..d2dd4aa052 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -149,7 +149,7 @@ int charge_get_percent(void);
/**
* Return non-zero if discharging and battery so low we should shut down.
*/
-#ifdef HAS_TASK_CHARGER
+#ifdef CONFIG_CHARGER
int charge_want_shutdown(void);
#else
static inline int charge_want_shutdown(void) { return 0; }