From 408ac447c3796300d11e2c5585fc5742a9b4de53 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Wed, 2 Nov 2022 15:34:36 -0600 Subject: usb_common: Remove pd_is_debug_acc This function is not used anywhere. BUG=b:256182103 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy Change-Id: I8fbf1ed2f0f3006f8899b638138d0d2374e85a5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4000784 Reviewed-by: Diana Z Code-Coverage: Zoss --- common/usb_common.c | 12 ------------ include/usb_pd.h | 7 ------- 2 files changed, 19 deletions(-) diff --git a/common/usb_common.c b/common/usb_common.c index 2ef12e9412..9d7159f81d 100644 --- a/common/usb_common.c +++ b/common/usb_common.c @@ -198,18 +198,6 @@ enum pd_cc_states pd_get_cc_state(enum tcpc_cc_voltage_status cc1, return PD_CC_NONE; } -/** - * This function checks the current CC status of the port partner - * and returns true if the attached partner is debug accessory. - */ -bool pd_is_debug_acc(int port) -{ - enum pd_cc_states cc_state = pd_get_task_cc_state(port); - - return cc_state == PD_CC_UFP_DEBUG_ACC || - cc_state == PD_CC_DFP_DEBUG_ACC; -} - __overridable int pd_board_check_request(uint32_t rdo, int pdo_cnt) { return EC_SUCCESS; diff --git a/include/usb_pd.h b/include/usb_pd.h index bf385c19c2..b2cadbc0d7 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -3188,13 +3188,6 @@ __override_proto void board_process_pd_alert(int port); */ void board_reset_pd_mcu(void); -/** - * Return true if specified PD port is debug accessory. - * - * @param port USB-C port number - */ -bool pd_is_debug_acc(int port); - /* * Notify the AP that we have entered into DisplayPort Alternate Mode. This * sets a DP_ALT_MODE_ENTERED MKBP event which may wake the AP. -- cgit v1.2.1