summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-03-19 09:32:16 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-03-20 23:50:57 +0000
commit0a35a979d470f64263d153521b4641b9d7dbdbef (patch)
treee8d030b742c80f30fbdbbc5c397b6b67020be6ab
parentb81c9779140fb19ec9d5d7150f1b0335a6dfce36 (diff)
downloadchrome-ec-0a35a979d470f64263d153521b4641b9d7dbdbef.tar.gz
Remove conditional declaration of charge_want_shutdown()
This is only used in power_button_x86.c, which always defines CONFIG_CHARGER, so there's no need to make it conditional. BRANCH=ToT BUG=chrome-os-partner:23776 TEST=make buildall -j Change-Id: I415572e691cc5bd6b189f9d3dd737b4209c33669 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/190851 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--include/charge_state.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 47ce682d01..b9795391b1 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -143,11 +143,7 @@ int charge_get_percent(void);
/**
* Return non-zero if discharging and battery so low we should shut down.
*/
-#ifdef CONFIG_CHARGER
int charge_want_shutdown(void);
-#else
-static inline int charge_want_shutdown(void) { return 0; }
-#endif
/**
* Get the last polled battery/charger temperature.