board/gingerbread/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -205,14 +205,10 @@ const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
/* USB-C PPC Configuration */
struct ppc_config_t ppc_chips[CONFIG_USB_PD_PORT_MAX_COUNT] = {
- [USB_PD_PORT_HOST] = {
- .i2c_port = I2C_PORT_I2C3,
+ [USB_PD_PORT_HOST] = { .i2c_port = I2C_PORT_I2C3,
.i2c_addr_flags = SN5S330_ADDR0_FLAGS,
- .drv = &sn5s330_drv
- },
- [USB_PD_PORT_DP] = {
- .drv = &board_ppc_null_drv
- },
+ .drv = &sn5s330_drv },
+ [USB_PD_PORT_DP] = { .drv = &board_ppc_null_drv },
};
unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips);
@@ -239,7 +235,6 @@ void board_reset_pd_mcu(void)
msleep(PS8805_FW_INIT_DELAY_MS);
}
-
/* Power Delivery and charging functions */
void board_enable_usbc_interrupts(void)
{
@@ -253,7 +248,6 @@ void board_enable_usbc_interrupts(void)
/* Enable HPD interrupt */
gpio_enable_interrupt(GPIO_DDI_MST_IN_HPD);
-
}
/* Power Delivery and charging functions */
@@ -267,7 +261,6 @@ void board_disable_usbc_interrupts(void)
/* Disable HPD interrupt */
gpio_disable_interrupt(GPIO_DDI_MST_IN_HPD);
-
}
void board_tcpc_init(void)
@@ -351,7 +344,7 @@ static void board_usb_tc_disconnect(void)
gpio_set_level(GPIO_EC_HUB2_RESET_L, 0);
}
}
-DECLARE_HOOK(HOOK_USB_PD_DISCONNECT, board_usb_tc_disconnect, \
+DECLARE_HOOK(HOOK_USB_PD_DISCONNECT, board_usb_tc_disconnect,
HOOK_PRIO_DEFAULT);
#endif /* SECTION_IS_RW */
