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 /baseboard/honeybuns | |
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 'baseboard/honeybuns')
-rw-r--r-- | baseboard/honeybuns/usb_pd_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/baseboard/honeybuns/usb_pd_policy.c b/baseboard/honeybuns/usb_pd_policy.c index 473003256b..ef2350a03d 100644 --- a/baseboard/honeybuns/usb_pd_policy.c +++ b/baseboard/honeybuns/usb_pd_policy.c @@ -458,7 +458,7 @@ static int svdm_response_identity(int port, uint32_t *payload) payload[VDO_INDEX_CSTAT] = VDO_CSTAT(0); payload[VDO_INDEX_PRODUCT] = vdo_product; - if (pd_get_rev(port, TCPC_TX_SOP) == PD_REV30) { + if (pd_get_rev(port, TCPCI_MSG_SOP) == PD_REV30) { /* PD Revision 3.0 */ payload[VDO_INDEX_IDH] = vdo_idh_rev30; payload[VDO_INDEX_PTYPE_UFP1_VDO] = vdo_ufp1; |