summaryrefslogtreecommitdiff
path: root/test/usb_tcpmv2_compliance.h
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2021-08-27 15:21:39 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-31 18:18:20 +0000
commit003ec08f8c67845ae8481d3fb4124555213b04c4 (patch)
tree3502c59532731d0003532657b1a2993e8ca9ad81 /test/usb_tcpmv2_compliance.h
parent5fa669005c3779b7310bf6bfe43f741a3d8ae871 (diff)
downloadchrome-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 'test/usb_tcpmv2_compliance.h')
-rw-r--r--test/usb_tcpmv2_compliance.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/usb_tcpmv2_compliance.h b/test/usb_tcpmv2_compliance.h
index 6566a54e51..331e3c5ee8 100644
--- a/test/usb_tcpmv2_compliance.h
+++ b/test/usb_tcpmv2_compliance.h
@@ -51,10 +51,10 @@ enum pd_power_role partner_get_power_role(void);
void partner_set_pd_rev(enum pd_rev_type pd_rev);
enum pd_rev_type partner_get_pd_rev(void);
-#define TCPC_TX_SOP_ALL -1
+#define TCPCI_MSG_SOP_ALL -1
void partner_tx_msg_id_reset(int sop);
-void partner_send_msg(enum tcpm_sop_type sop,
+void partner_send_msg(enum tcpci_msg_type sop,
uint16_t type,
uint16_t cnt,
uint16_t ext,