diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2021-08-27 15:21:39 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-31 18:18:20 +0000 |
commit | 003ec08f8c67845ae8481d3fb4124555213b04c4 (patch) | |
tree | 3502c59532731d0003532657b1a2993e8ca9ad81 /common/usbc/usb_pe_ctvpd_sm.c | |
parent | 5fa669005c3779b7310bf6bfe43f741a3d8ae871 (diff) | |
download | chrome-ec-003ec08f8c67845ae8481d3fb4124555213b04c4.tar.gz |
TCPM: Rename enum tcpm_sop_type and its constants
As a followup to CL:3104290, give the TCPCI TRANSMIT and
RX_BUF_FRAME_TYPE types more consistent names. Most of them can be used
for receiving, not just transmitting. Fix lint errors thus revealed.
BUG=b:155476419
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I399ec479eacc18622fc4d3f55f8bdabf4560fcff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3125995
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usbc/usb_pe_ctvpd_sm.c')
-rw-r--r-- | common/usbc/usb_pe_ctvpd_sm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/usbc/usb_pe_ctvpd_sm.c b/common/usbc/usb_pe_ctvpd_sm.c index eb7d8a0aa7..346a57a461 100644 --- a/common/usbc/usb_pe_ctvpd_sm.c +++ b/common/usbc/usb_pe_ctvpd_sm.c @@ -111,7 +111,7 @@ void pe_got_hard_reset(int port) /* No implementation needed by this policy engine */ } -void pe_report_error(int port, enum pe_error e, enum tcpm_sop_type type) +void pe_report_error(int port, enum pe_error e, enum tcpci_msg_type type) { /* No implementation needed by this policy engine */ } @@ -210,11 +210,11 @@ static void pe_request_run(const int port) tx_emsg[port].len = 20; /* Set to highest revision supported by both ports. */ - prl_set_rev(port, TCPC_TX_SOP_PRIME, + prl_set_rev(port, TCPCI_MSG_SOP_PRIME, (PD_HEADER_REV(header) > PD_REV30) ? PD_REV30 : PD_HEADER_REV(header)); /* Send the ACK */ - prl_send_data_msg(port, TCPC_TX_SOP_PRIME, + prl_send_data_msg(port, TCPCI_MSG_SOP_PRIME, PD_DATA_VENDOR_DEF); } } |