summaryrefslogtreecommitdiff
path: root/common/usbc/usb_tc_ctvpd_sm.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-02-12 12:25:34 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-24 20:48:57 +0000
commit5f505564df053199fd93b6b29247d6510ac38321 (patch)
treeecd383dbf0d84260bbd4be8c096ff1c608e5c2d8 /common/usbc/usb_tc_ctvpd_sm.c
parentc06e040dcd91b0da76e2a82d41a034b5954c763c (diff)
downloadchrome-ec-5f505564df053199fd93b6b29247d6510ac38321.tar.gz
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 <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2052645 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common/usbc/usb_tc_ctvpd_sm.c')
-rw-r--r--common/usbc/usb_tc_ctvpd_sm.c14
1 files changed, 7 insertions, 7 deletions
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;
}