board/coffeecake/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -31,13 +31,11 @@ void vbus_event(enum gpio_signal signal);
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "charger",
+ { .name = "charger",
.port = I2C_PORT_SY21612,
.kbps = 400,
.scl = GPIO_I2C0_SCL,
- .sda = GPIO_I2C0_SDA
- },
+ .sda = GPIO_I2C0_SDA },
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
@@ -199,8 +197,7 @@ static void factory_validation_deferred(void)
if (!mcdp_get_info(&info) && (MCDP_FAMILY(info.family) == 0x0010) &&
(MCDP_CHIPID(info.chipid) == 0x2850)) {
pd_log_event(PD_EVENT_VIDEO_CODEC,
- PD_LOG_PORT_SIZE(0, sizeof(info)),
- 0, &info);
+ PD_LOG_PORT_SIZE(0, sizeof(info)), 0, &info);
}
mcdp_disable();
@@ -215,7 +212,8 @@ static void board_post_init(void)
* DUT powered - DRP SINK
*/
pd_set_dual_role(0, gpio_get_level(GPIO_AC_PRESENT_L) ?
- PD_DRP_FORCE_SINK : PD_DRP_FORCE_SOURCE);
+ PD_DRP_FORCE_SINK :
+ PD_DRP_FORCE_SOURCE);
}
DECLARE_DEFERRED(board_post_init);
@@ -233,7 +231,8 @@ static void board_init(void)
gpio_enable_interrupt(GPIO_CHARGER_INT);
gpio_enable_interrupt(GPIO_USB_C_VBUS_DET_L);
/* Set PD_DISCHARGE initial state */
- gpio_set_level(GPIO_PD_DISCHARGE, gpio_get_level(GPIO_USB_C_VBUS_DET_L));
+ gpio_set_level(GPIO_PD_DISCHARGE,
+ gpio_get_level(GPIO_USB_C_VBUS_DET_L));
/* Delay needed to allow HDMI MCU to boot. */
hook_call_deferred(&factory_validation_deferred_data, 200 * MSEC);
