summaryrefslogtreecommitdiff
path: root/include/extpower.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-09 10:03:40 -0700
committerChromeBot <chrome-bot@google.com>2013-04-10 14:24:10 -0700
commite5f4032866d703735808f934375d31072ff8603b (patch)
treeb3cfa99414ee2b45520d17fd714aedb448652657 /include/extpower.h
parenta1c99c7228086a4f3d06fc299fa43ba7928c6b48 (diff)
downloadchrome-ec-e5f4032866d703735808f934375d31072ff8603b.tar.gz
Clean up USB external power module
Make internal APIs static, and remove board_ prefix for clarity. Move TSU6721 calls from charger task to extpower_usb functions for better encapsulation. No functional changes, just moving code. Yes, this will make cherry-picking back from spring to TOT less convenient, but now the code is more readable and it will make maintaining the PMU code easier as we add boards. BUG=chrome-os-partner:18343 BRANCH=none TEST=build spring Change-Id: I52b37e57fc8519859996a110b0503277c6f0bbc8 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47657
Diffstat (limited to 'include/extpower.h')
-rw-r--r--include/extpower.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/extpower.h b/include/extpower.h
index d3f9a4f6ef..36c5535633 100644
--- a/include/extpower.h
+++ b/include/extpower.h
@@ -10,6 +10,11 @@
#include "common.h"
+#ifdef CONFIG_EXTPOWER_USB
+/* USB-power-specific methods */
+#include "extpower_usb.h"
+#endif
+
/**
* Return non-zero if external power is present.
*/