summaryrefslogtreecommitdiff
path: root/include/usb_tc_sm.h
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 /include/usb_tc_sm.h
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 'include/usb_tc_sm.h')
-rw-r--r--include/usb_tc_sm.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/usb_tc_sm.h b/include/usb_tc_sm.h
index 4782dcbfe9..3c6d95fc33 100644
--- a/include/usb_tc_sm.h
+++ b/include/usb_tc_sm.h
@@ -9,6 +9,7 @@
#define __CROS_EC_USB_TC_H
#include "usb_sm.h"
+#include "usb_pd.h"
#include "usb_pd_tcpm.h"
#define TC_SET_FLAG(port, flag) atomic_or(&tc[port].flags, (flag))
@@ -48,22 +49,6 @@ int tc_is_attached_src(int port);
int tc_is_attached_snk(int port);
/**
- * Get current data role
- *
- * @param port USB-C port number
- * @return PD data role
- */
-enum pd_data_role tc_get_data_role(int port);
-
-/**
- * Get current power role
- *
- * @param port USB-C port number
- * @return PD power role
- */
-enum pd_power_role tc_get_power_role(int port);
-
-/**
* Get cable plug setting. This should be constant per build. This replaces
* the power role bit in PD header for SOP' and SOP" packets.
*