summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-11-19 11:28:54 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-21 21:57:49 +0000
commitcdfc04f0d6e244a892df68a241d999915920b581 (patch)
treec57abb84d47900d0d44f04d3af4e77ac80f62649
parent726736f99d41b42e0365c51315d4887c1bdd96f2 (diff)
downloadchrome-ec-cdfc04f0d6e244a892df68a241d999915920b581.tar.gz
cleanup: fixing warnings and formatting
BRANCH=none BUG=none TEST=builds Change-Id: Idf4b7363ce08a638fcca3407355c8f232100496d Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1924786 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--common/mock/tcpc_mock.h2
-rw-r--r--common/usb_pd_protocol.c2
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;