summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/usb_charge.h11
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 */