diff options
Diffstat (limited to 'include/driver/tcpm')
-rw-r--r-- | include/driver/tcpm/tcpci.h | 2 | ||||
-rw-r--r-- | include/driver/tcpm/tcpm.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/driver/tcpm/tcpci.h b/include/driver/tcpm/tcpci.h index 5270da8d4e..53a6a4e65e 100644 --- a/include/driver/tcpm/tcpci.h +++ b/include/driver/tcpm/tcpci.h @@ -262,7 +262,7 @@ int tcpci_tcpm_set_vconn(int port, int enable); int tcpci_tcpm_set_msg_header(int port, int power_role, int data_role); int tcpci_tcpm_set_rx_enable(int port, int enable); int tcpci_tcpm_get_message_raw(int port, uint32_t *payload, int *head); -int tcpci_tcpm_transmit(int port, enum tcpm_sop_type type, +int tcpci_tcpm_transmit(int port, enum tcpci_msg_type type, uint16_t header, const uint32_t *data); int tcpci_tcpm_release(int port); #ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE diff --git a/include/driver/tcpm/tcpm.h b/include/driver/tcpm/tcpm.h index d8fe5602a3..fb63e5504f 100644 --- a/include/driver/tcpm/tcpm.h +++ b/include/driver/tcpm/tcpm.h @@ -271,7 +271,7 @@ static inline int tcpm_reset_bist_type_2(int port) */ int tcpm_enqueue_message(int port); -static inline int tcpm_transmit(int port, enum tcpm_sop_type type, +static inline int tcpm_transmit(int port, enum tcpci_msg_type type, uint16_t header, const uint32_t *data) { return tcpc_config[port].drv->transmit(port, type, header, data); @@ -532,7 +532,7 @@ void tcpm_enable_auto_discharge_disconnect(int port, int enable); * * @return EC_SUCCESS or error */ -int tcpm_transmit(int port, enum tcpm_sop_type type, uint16_t header, +int tcpm_transmit(int port, enum tcpci_msg_type type, uint16_t header, const uint32_t *data); /** |