diff options
Diffstat (limited to 'common/mock/usb_pe_sm_mock.c')
-rw-r--r-- | common/mock/usb_pe_sm_mock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/mock/usb_pe_sm_mock.c b/common/mock/usb_pe_sm_mock.c index 150cbb51e6..a237102a74 100644 --- a/common/mock/usb_pe_sm_mock.c +++ b/common/mock/usb_pe_sm_mock.c @@ -11,6 +11,7 @@ #include "usb_pe_sm.h" #include "mock/usb_pe_sm_mock.h" #include "memory.h" +#include "usb_pd_tcpm.h" #ifndef CONFIG_COMMON_RUNTIME #define cprints(format, args...) @@ -45,7 +46,7 @@ void mock_pe_port_reset(void) } } -void pe_report_error(int port, enum pe_error e, enum tcpm_transmit_type type) +void pe_report_error(int port, enum pe_error e, enum tcpm_sop_type type) { mock_pe_port[port].mock_pe_error = e; mock_pe_port[port].sop = type; @@ -109,7 +110,7 @@ void pd_set_src_caps(int port, int cnt, uint32_t *src_caps) void pd_request_power_swap(int port) {} -int pd_get_rev(int port, enum tcpm_transmit_type type) +int pd_get_rev(int port, enum tcpm_sop_type type) { return IS_ENABLED(CONFIG_USB_PD_REV30) ? PD_REV30 : PD_REV20; } |