From 59e395027ab03c0ca2b5263193b30dff1c063c44 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Wed, 18 Aug 2021 11:43:25 -0600 Subject: TCPM: Rename enum tcpm_transmit_type Rename tcpm_transmit_type to tcpm_sop_type to reflect that it can be used for Rx as well. Describe it in comments. This prepares to consolidate enum pd_msg_type into this enum. BUG=b:155476419 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy Change-Id: Ife97d4ad51c48f2e832b94e007954919e236a309 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3104290 Reviewed-by: Keith Short --- board/plankton/usb_pd_policy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'board/plankton') diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c index 5bceceaf6c..769c4b298c 100644 --- a/board/plankton/usb_pd_policy.c +++ b/board/plankton/usb_pd_policy.c @@ -15,6 +15,7 @@ #include "timer.h" #include "util.h" #include "usb_pd.h" +#include "usb_pd_tcpm.h" #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ## args) #define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args) @@ -236,7 +237,7 @@ int svdm_enter_mode(int port, uint32_t *payload) return 1; } -int pd_alt_mode(int port, enum tcpm_transmit_type type, uint16_t svid) +int pd_alt_mode(int port, enum tcpm_sop_type type, uint16_t svid) { return alt_mode; } -- cgit v1.2.1