summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/usb_common.c9
-rw-r--r--common/usb_pd_policy.c9
2 files changed, 9 insertions, 9 deletions
diff --git a/common/usb_common.c b/common/usb_common.c
index 372d55d2a0..59eaf7946b 100644
--- a/common/usb_common.c
+++ b/common/usb_common.c
@@ -1065,6 +1065,15 @@ void pd_send_host_event(int mask)
}
#endif /* defined(HAS_TASK_HOSTCMD) && !defined(TEST_BUILD) */
+#ifdef CONFIG_MKBP_EVENT
+static int dp_alt_mode_entry_get_next_event(uint8_t *data)
+{
+ return EC_SUCCESS;
+}
+DECLARE_EVENT_SOURCE(EC_MKBP_EVENT_DP_ALT_MODE_ENTERED,
+ dp_alt_mode_entry_get_next_event);
+#endif /* CONFIG_MKBP_EVENT */
+
__overridable void pd_notify_dp_alt_mode_entry(int port)
{
if (IS_ENABLED(CONFIG_MKBP_EVENT)) {
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c
index 3b2d6b4b8f..e07e028fc2 100644
--- a/common/usb_pd_policy.c
+++ b/common/usb_pd_policy.c
@@ -78,15 +78,6 @@ __overridable void pd_check_dr_role(int port, enum pd_data_role dr_role,
pd_request_data_swap(port);
}
-#ifdef CONFIG_MKBP_EVENT
-static int dp_alt_mode_entry_get_next_event(uint8_t *data)
-{
- return EC_SUCCESS;
-}
-DECLARE_EVENT_SOURCE(EC_MKBP_EVENT_DP_ALT_MODE_ENTERED,
- dp_alt_mode_entry_get_next_event);
-#endif /* CONFIG_MKBP_EVENT */
-
/* Last received source cap */
static uint32_t pd_src_caps[CONFIG_USB_PD_PORT_MAX_COUNT][PDO_MAX_OBJECTS];
static uint8_t pd_src_cap_cnt[CONFIG_USB_PD_PORT_MAX_COUNT];