diff options
-rw-r--r-- | common/mock/tcpc_mock.h | 2 | ||||
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/mock/tcpc_mock.h b/common/mock/tcpc_mock.h index 267856f463..0cea10412a 100644 --- a/common/mock/tcpc_mock.h +++ b/common/mock/tcpc_mock.h @@ -16,7 +16,7 @@ struct mock_tcpc_ctrl { enum pd_data_role data_role; int num_calls_to_set_header; int should_print_header_changes; - }; +}; /* Reset this TCPC mock */ void mock_tcpc_reset(void); diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 28fe9aa4cd..2b3d5704aa 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2817,7 +2817,7 @@ void schedule_deferred_pd_interrupt(const int port) */ void pd_interrupt_handler_task(void *p) { - const int port = (int) p; + const int port = (int) ((intptr_t) p); const int port_mask = (PD_STATUS_TCPC_ALERT_0 << port); struct { int count; |