From 5f505564df053199fd93b6b29247d6510ac38321 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Wed, 12 Feb 2020 12:25:34 -0800 Subject: TCPMv1/v2: Move pd_set_polarity() to common file BUG=b:148528713 BRANCH=none TEST=make buildall -j Change-Id: Idf6908bfc3e79a960a7de6e4249c2f50b41b56e6 Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2052645 Reviewed-by: Diana Z --- common/usbc/usb_tc_ctvpd_sm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'common/usbc/usb_tc_ctvpd_sm.c') diff --git a/common/usbc/usb_tc_ctvpd_sm.c b/common/usbc/usb_tc_ctvpd_sm.c index 07b0fc5aae..194bb664fe 100644 --- a/common/usbc/usb_tc_ctvpd_sm.c +++ b/common/usbc/usb_tc_ctvpd_sm.c @@ -418,7 +418,7 @@ static void tc_attached_snk_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); /* * This state can only be entered from states AttachWait.SNK @@ -679,7 +679,7 @@ static void tc_attached_src_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); /* Connect Charge-Through VBUS to Host VBUS */ vpd_vbus_pass_en(1); @@ -879,7 +879,7 @@ static void tc_ct_try_snk_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); tc[port].cc_state = PD_CC_UNSET; tc[port].next_role_swap = get_time().val + PD_T_DRP_TRY; @@ -975,7 +975,7 @@ static void tc_ct_attach_wait_unsupported_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); tc[port].cc_state = PD_CC_UNSET; } @@ -1105,7 +1105,7 @@ static void tc_ct_unattached_unsupported_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); tc[port].next_role_swap = get_time().val + PD_T_DRP_SRC; } @@ -1173,7 +1173,7 @@ static void tc_ct_unattached_vpd_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); tc[port].cc_state = PD_CC_UNSET; } @@ -1380,7 +1380,7 @@ static void tc_ct_attach_wait_vpd_entry(const int port) /* Enable PD */ tc[port].pd_enable = 1; - set_polarity(port, 0); + pd_set_polarity(port, 0); tc[port].cc_state = PD_CC_UNSET; } -- cgit v1.2.1