summaryrefslogtreecommitdiff
path: root/test/usb_tcpmv2_td_pd_src3_e7.c
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_td_pd_src3_e7.c
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_td_pd_src3_e7.c')
-rw-r--r--test/usb_tcpmv2_td_pd_src3_e7.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/usb_tcpmv2_td_pd_src3_e7.c b/test/usb_tcpmv2_td_pd_src3_e7.c
index f018af849b..409d0d6b80 100644
--- a/test/usb_tcpmv2_td_pd_src3_e7.c
+++ b/test/usb_tcpmv2_td_pd_src3_e7.c
@@ -63,18 +63,18 @@ int test_td_pd_src3_e7(void)
*/
TEST_EQ(proc_pd_e3(), EC_SUCCESS, "%d");
- partner_send_msg(TCPC_TX_SOP, PD_CTRL_GET_SOURCE_CAP_EXT, 0, 0, NULL);
+ partner_send_msg(TCPCI_MSG_SOP, PD_CTRL_GET_SOURCE_CAP_EXT, 0, 0, NULL);
/*
* c) If a Not_Supported message is received, and Num_Fixed_Batteries
* and Num_Swappable_Battery_Slots in the VIF are 0, the test
* passes and stops here.
*/
- possible[0].tx_type = TCPC_TX_SOP;
+ possible[0].tx_type = TCPCI_MSG_SOP;
possible[0].ctrl_msg = PD_CTRL_NOT_SUPPORTED;
possible[0].data_msg = 0;
- possible[1].tx_type = TCPC_TX_SOP;
+ possible[1].tx_type = TCPCI_MSG_SOP;
possible[1].ctrl_msg = 0;
possible[1].data_msg = PD_EXT_SOURCE_CAP;
@@ -117,7 +117,7 @@ int test_td_pd_src3_e7(void)
ext_msg = EXT_MSG_CHUNKED |
EXT_MSG_DATA_SIZE_1 |
GBSDB_FIXED_BATTERY_0;
- partner_send_msg(TCPC_TX_SOP, PD_EXT_GET_BATTERY_STATUS, 1, 1,
+ partner_send_msg(TCPCI_MSG_SOP, PD_EXT_GET_BATTERY_STATUS, 1, 1,
&ext_msg);
/*
@@ -127,7 +127,7 @@ int test_td_pd_src3_e7(void)
* been transmitted to the time the first bit of the Battery_Status
* message preamble has been received.
*/
- TEST_EQ(verify_tcpci_tx_timeout(TCPC_TX_SOP,
+ TEST_EQ(verify_tcpci_tx_timeout(TCPCI_MSG_SOP,
0,
PD_DATA_BATTERY_STATUS,
(15 * MSEC)),