diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2022-11-02 15:34:36 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-04 18:07:15 +0000 |
commit | 408ac447c3796300d11e2c5585fc5742a9b4de53 (patch) | |
tree | 12b119aadf8f4351718e4fed4a8db7d5069e1a79 | |
parent | 23fd725b83abdcb50eb99f69e6a4b102489ba3f7 (diff) | |
download | chrome-ec-408ac447c3796300d11e2c5585fc5742a9b4de53.tar.gz |
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 <alevkoy@chromium.org>
Change-Id: I8fbf1ed2f0f3006f8899b638138d0d2374e85a5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4000784
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r-- | common/usb_common.c | 12 | ||||
-rw-r--r-- | include/usb_pd.h | 7 |
2 files changed, 0 insertions, 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. |