summaryrefslogtreecommitdiff
path: root/include/usb_prl_sm.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 /include/usb_prl_sm.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 'include/usb_prl_sm.h')
-rw-r--r--include/usb_prl_sm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/usb_prl_sm.h b/include/usb_prl_sm.h
index 011dce2100..6607bd2824 100644
--- a/include/usb_prl_sm.h
+++ b/include/usb_prl_sm.h
@@ -80,7 +80,7 @@ void prl_run(int port, int evt, int en);
* @param type port address
* @param rev revision
*/
-void prl_set_rev(int port, enum tcpm_sop_type type,
+void prl_set_rev(int port, enum tcpci_msg_type type,
enum pd_rev_type rev);
/**
@@ -90,7 +90,7 @@ void prl_set_rev(int port, enum tcpm_sop_type type,
* @param type port address
* @return pd rev
*/
-enum pd_rev_type prl_get_rev(int port, enum tcpm_sop_type type);
+enum pd_rev_type prl_get_rev(int port, enum tcpci_msg_type type);
/**
* Sends a PD control message
@@ -99,7 +99,7 @@ enum pd_rev_type prl_get_rev(int port, enum tcpm_sop_type type);
* @param type Transmit type
* @param msg Control message type
*/
-void prl_send_ctrl_msg(int port, enum tcpm_sop_type type,
+void prl_send_ctrl_msg(int port, enum tcpci_msg_type type,
enum pd_ctrl_msg_type msg);
/**
@@ -109,7 +109,7 @@ void prl_send_ctrl_msg(int port, enum tcpm_sop_type type,
* @param type Transmit type
* @param msg Data message type
*/
-void prl_send_data_msg(int port, enum tcpm_sop_type type,
+void prl_send_data_msg(int port, enum tcpci_msg_type type,
enum pd_data_msg_type msg);
/**
@@ -119,7 +119,7 @@ void prl_send_data_msg(int port, enum tcpm_sop_type type,
* @param type Transmit type
* @param msg Extended data message type
*/
-void prl_send_ext_data_msg(int port, enum tcpm_sop_type type,
+void prl_send_ext_data_msg(int port, enum tcpci_msg_type type,
enum pd_ext_msg_type msg);
/**