diff options
author | Denis Brockus <dbrockus@chromium.org> | 2020-01-09 08:42:38 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-10 18:27:27 +0000 |
commit | 58dbab0e1bb70a8b3d9dd0b66f267302fd240889 (patch) | |
tree | eb575d4dbfb466b931a9f9cb1e3515c2a8ee035e /common/usbc/usb_prl_sm.c | |
parent | faea7b763c2ccd1b9f980267b92d570a524f7e87 (diff) | |
download | chrome-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_prl_sm.c')
-rw-r--r-- | common/usbc/usb_prl_sm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/usbc/usb_prl_sm.c b/common/usbc/usb_prl_sm.c index b0f186cc62..174746a70d 100644 --- a/common/usbc/usb_prl_sm.c +++ b/common/usbc/usb_prl_sm.c @@ -490,7 +490,7 @@ static void prl_tx_wait_for_message_request_run(const int port) if ((prl_get_rev(port, pdmsg[port].xmit_type) == PD_REV30) && PRL_TX_CHK_FLAG(port, (PRL_FLAGS_START_AMS | PRL_FLAGS_END_AMS))) { - if (tc_get_power_role(port) == PD_ROLE_SOURCE) { + if (pd_get_power_role(port) == PD_ROLE_SOURCE) { /* * Start of SRC AMS notification received from * Policy Engine @@ -638,9 +638,9 @@ static uint32_t get_sop_star_header(const int port) return PD_HEADER( pdmsg[port].msg_type, is_sop_packet ? - tc_get_power_role(port) : tc_get_cable_plug(port), + pd_get_power_role(port) : tc_get_cable_plug(port), is_sop_packet ? - tc_get_data_role(port) : 0, + pd_get_data_role(port) : 0, prl_tx[port].msg_id_counter[pdmsg[port].xmit_type], pdmsg[port].data_objs, pdmsg[port].rev[pdmsg[port].xmit_type], |