summaryrefslogtreecommitdiff
path: root/common/usbc/usb_tc_ctvpd_sm.c
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2020-01-09 08:42:38 -0700
committerCommit Bot <commit-bot@chromium.org>2020-01-10 18:27:27 +0000
commit58dbab0e1bb70a8b3d9dd0b66f267302fd240889 (patch)
treeeb575d4dbfb466b931a9f9cb1e3515c2a8ee035e /common/usbc/usb_tc_ctvpd_sm.c
parentfaea7b763c2ccd1b9f980267b92d570a524f7e87 (diff)
downloadchrome-ec-58dbab0e1bb70a8b3d9dd0b66f267302fd240889.tar.gz
pd: use pd_get_[power/data]_role instead of the tc version
the tc versions were doing the same thing as the pd version so removed the duplication BUG=b:147290482,b:147314832 BRANCH=none TEST=make buildall -j Signed-off-by: Denis Brockus <dbrockus@chromium.org> Change-Id: Iaa48dcd65e3a6c325b0ae2cca33e629fec6e33c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1993861 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'common/usbc/usb_tc_ctvpd_sm.c')
-rw-r--r--common/usbc/usb_tc_ctvpd_sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usbc/usb_tc_ctvpd_sm.c b/common/usbc/usb_tc_ctvpd_sm.c
index 4d0b6664f0..07b0fc5aae 100644
--- a/common/usbc/usb_tc_ctvpd_sm.c
+++ b/common/usbc/usb_tc_ctvpd_sm.c
@@ -134,7 +134,7 @@ static void set_state_tc(const int port, enum usb_tc_state new_state);
/* Public TypeC functions */
-enum pd_power_role tc_get_power_role(int port)
+enum pd_power_role pd_get_power_role(int port)
{
/* Vconn power device is always the sink */
return PD_ROLE_SINK;
@@ -146,7 +146,7 @@ enum pd_cable_plug tc_get_cable_plug(int port)
return PD_PLUG_FROM_CABLE;
}
-enum pd_data_role tc_get_data_role(int port)
+enum pd_data_role pd_get_data_role(int port)
{
/* Vconn power device doesn't have a data role, but UFP matches SNK */
return PD_ROLE_UFP;