diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-25 17:00:28 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-26 09:49:37 -0700 |
commit | 7cf92c140d4f540c4704f6d2fa3a4759ed618ec9 (patch) | |
tree | 10e0c7dc207679791f6ef440be10f6737a189f49 /include | |
parent | 2df9ba881493f80db154de756e61b426380dded6 (diff) | |
download | chrome-ec-7cf92c140d4f540c4704f6d2fa3a4759ed618ec9.tar.gz |
Clean up USB charging module
No functional changes.
BUG=chrome-os-partner:15579
BRANCH=none
TEST=plug in USB mouse; is powered when system is on
Change-Id: Icbad3035f384191daa2b6dfae61d78f18ece1d76
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36613
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_charge.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/usb_charge.h b/include/usb_charge.h index ca012d9af6..df1f70c9f3 100644 --- a/include/usb_charge.h +++ b/include/usb_charge.h @@ -8,7 +8,7 @@ #ifndef __CROS_EC_USB_CHARGE_H #define __CROS_EC_USB_CHARGE_H -#include "board.h" +#include "common.h" enum usb_charge_mode { /* Disable USB port. */ @@ -23,6 +23,13 @@ enum usb_charge_mode { USB_CHARGE_MODE_COUNT }; -int usb_charge_set_mode(int usb_port_id, enum usb_charge_mode); +/** + * Set USB charge mode for the port. + * + * @param usb_port_id Port to set. + * @param mode New mode for port. + * @return EC_SUCCESS, or non-zero if error. + */ +int usb_charge_set_mode(int usb_port_id, enum usb_charge_mode mode); #endif /* __CROS_EC_USB_CHARGE_H */ |