diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2021-08-18 12:21:41 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-18 23:04:52 +0000 |
commit | 110f908a498551a9f90d86d8b5dd369acdf98438 (patch) | |
tree | f192b41790edf592188180d5efe4eb24e0a0ac07 /include | |
parent | 59e395027ab03c0ca2b5263193b30dff1c063c44 (diff) | |
download | chrome-ec-110f908a498551a9f90d86d8b5dd369acdf98438.tar.gz |
TCPM: Remove enum pd_msg_type
Convert usages of this enum to tcpm_sop_type.
BUG=b:155476419
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I5fed273d72e7ad0e191db0cb0d121b70bdd9ecdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3104291
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/mock/tcpci_i2c_mock.h | 2 | ||||
-rw-r--r-- | include/usb_pd.h | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/include/mock/tcpci_i2c_mock.h b/include/mock/tcpci_i2c_mock.h index de813e392c..17dba6dddd 100644 --- a/include/mock/tcpci_i2c_mock.h +++ b/include/mock/tcpci_i2c_mock.h @@ -52,7 +52,7 @@ int verify_tcpci_possible_tx(struct possible_tx possible[], int *msg_len, int timeout); -void mock_tcpci_receive(enum pd_msg_type sop, uint16_t header, +void mock_tcpci_receive(enum tcpm_sop_type sop, uint16_t header, uint32_t *payload); void tcpci_register_dump(void); diff --git a/include/usb_pd.h b/include/usb_pd.h index 5200ef4e1c..ae30f75742 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1305,15 +1305,6 @@ enum cable_outlet { #define PD_HEADER_GET_SOP(header) (((header) >> 28) & 0xf) #define PD_HEADER_SOP(sop) (((sop) & 0xf) << 28) -enum pd_msg_type { - PD_MSG_SOP, - PD_MSG_SOP_PRIME, - PD_MSG_SOP_PRIME_PRIME, - PD_MSG_SOP_DBG_PRIME, - PD_MSG_SOP_DBG_PRIME_PRIME, - PD_MSG_SOP_CBL_RST, -}; - /* Used for processing pd extended header */ #define PD_EXT_HEADER_CHUNKED(header) (((header) >> 15) & 1) #define PD_EXT_HEADER_CHUNK_NUM(header) (((header) >> 11) & 0xf) |