diff options
author | Edward Hill <ecgh@chromium.org> | 2019-10-08 16:34:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-15 22:34:43 +0000 |
commit | d673ee383c432a85901de1d5ad3cf937a484a240 (patch) | |
tree | 6d3c56fe73c8928db20fd062a9819267ba4dd082 | |
parent | aa180fc2aa10c94d472d1b80fcf335f3d0d54de9 (diff) | |
download | chrome-ec-d673ee383c432a85901de1d5ad3cf937a484a240.tar.gz |
usbc: make pe_init() static
pe_init() is called via pe_run(), so make it static.
BRANCH=none
BUG=none
TEST=build
Change-Id: I56928369e50a2022fc7e2aee2f68f09ebe7c06b6
Signed-off-by: Edward Hill <ecgh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1850191
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | common/usbc/usb_pe_ctvpd_sm.c | 2 | ||||
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 2 | ||||
-rw-r--r-- | include/usb_pe_sm.h | 7 |
3 files changed, 2 insertions, 9 deletions
diff --git a/common/usbc/usb_pe_ctvpd_sm.c b/common/usbc/usb_pe_ctvpd_sm.c index c347882651..4f18ed774e 100644 --- a/common/usbc/usb_pe_ctvpd_sm.c +++ b/common/usbc/usb_pe_ctvpd_sm.c @@ -44,7 +44,7 @@ static void set_state_pe(const int port, enum usb_pe_state new_state) set_state(port, &pe[port].ctx, &pe_states[new_state]); } -void pe_init(int port) +static void pe_init(int port) { const struct sm_ctx cleared = {}; diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index 99ae0ab9ed..d0e91e5098 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -439,7 +439,7 @@ static struct svdm_amode_data *get_modep(int port, uint16_t svid); test_export_static enum usb_pe_state get_state_pe(const int port); static void set_state_pe(const int port, const enum usb_pe_state new_state); -void pe_init(int port) +static void pe_init(int port) { pe[port].flags = 0; pe[port].dpm_request = 0; diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h index 0a51ce5fa3..2806f0702d 100644 --- a/include/usb_pe_sm.h +++ b/include/usb_pe_sm.h @@ -38,13 +38,6 @@ enum pe_dpm_request { }; /** - * Initialize the Policy Engine State Machine - * - * @param port USB-C port number - */ -void pe_init(int port); - -/** * Runs the Policy Engine State Machine * * @param port USB-C port number |