diff options
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r-- | include/usb_mux.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h index 6a01aae3df..8944c4b774 100644 --- a/include/usb_mux.h +++ b/include/usb_mux.h @@ -68,6 +68,18 @@ struct usb_mux_driver { * @return EC_SUCCESS on success, non-zero error code on failure. */ int (*get)(int port_addr, mux_state_t *mux_state); + + /** + * Optional method that is called after the mux fully disconnects. + * + * Note: this method does not need to be defined for TCPC/MUX combos + * where the TCPC is actively used since the PD state machine + * will put the chip into lower power mode. + * + * @param mux USB mux to put into low power. + * @return EC_SUCCESS on success, non-zero error code on failure. + */ + int (*enter_low_power_mode)(int port_addr); }; /* Describes a USB mux present in the system */ @@ -82,18 +94,6 @@ struct usb_mux { const struct usb_mux_driver *driver; /** - * Optional method that is called after the mux fully disconnects. - * - * Note: this method does not need to be defined for TCPC/MUX combos - * where the TCPC is actively used since the PD state machine - * will put the chip into lower power mode. - * - * @param mux USB mux to put into low power. - * @return EC_SUCCESS on success, non-zero error code on failure. - */ - int (*enter_low_power_mode)(const struct usb_mux *mux); - - /** * Optional method for tuning for USB mux during mux->driver->init(). * * @param mux USB mux to tune |