diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 13:58:08 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 21:48:54 +0000 |
commit | 3c8e30a84dd0489de5205ed7527b2b8dba4f3e63 (patch) | |
tree | 01062d217382ba0209efda24ef7e17d62d63b5c3 /board/osiris | |
parent | 27e7bbc502d58aba5ead7816b318ae34d5521f67 (diff) | |
download | chrome-ec-3c8e30a84dd0489de5205ed7527b2b8dba4f3e63.tar.gz |
board/osiris/usbc_config.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I058af98a401e9a43980ea85cd2eaa58f4347122b
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728804
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/osiris')
-rw-r--r-- | board/osiris/usbc_config.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/board/osiris/usbc_config.c b/board/osiris/usbc_config.c index 9a165ecdcc..fc85e6783a 100644 --- a/board/osiris/usbc_config.c +++ b/board/osiris/usbc_config.c @@ -32,8 +32,8 @@ #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) +#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) +#define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) /* USBC TCPC configuration */ const struct tcpc_config_t tcpc_config[] = { @@ -94,7 +94,6 @@ BUILD_ASSERT(ARRAY_SIZE(ppc_chips) == USBC_PORT_COUNT); unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); - /* * USB3 MB/DB mux configuration - the top level mux still needs to be set * to the virtual_usb_mux_driver so the AP gets notified of mux changes @@ -144,7 +143,6 @@ const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = { }; BUILD_ASSERT(ARRAY_SIZE(pi3usb9201_bc12_chips) == USBC_PORT_COUNT); - #ifdef CONFIG_CHARGE_RAMP_SW /* @@ -169,8 +167,8 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state) } if (voltage < BC12_MIN_VOLTAGE) { - CPRINTS("%s: port %d: vbus %d lower than %d", __func__, - port, voltage, BC12_MIN_VOLTAGE); + CPRINTS("%s: port %d: vbus %d lower than %d", __func__, port, + voltage, BC12_MIN_VOLTAGE); return 1; } @@ -220,7 +218,6 @@ static void board_tcpc_init(void) /* Enable BC1.2 interrupts. */ gpio_enable_interrupt(GPIO_USB_C0_BC12_INT_ODL); gpio_enable_interrupt(GPIO_USB_C1_BC12_INT_ODL); - } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_CHIPSET); |