board/host/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -67,45 +67,31 @@ test_mockable void fps_event(enum gpio_signal signal)
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
#ifdef I2C_PORT_BATTERY
- {
- .name = "battery",
+ { .name = "battery",
.port = I2C_PORT_BATTERY,
.kbps = 100,
.scl = 0,
- .sda = 0
- },
+ .sda = 0 },
#elif defined I2C_PORT_LIGHTBAR
- {
- .name = "lightbar",
+ { .name = "lightbar",
.port = I2C_PORT_LIGHTBAR,
.kbps = 100,
.scl = 0,
- .sda = 0
- },
+ .sda = 0 },
#elif defined I2C_PORT_HOST_TCPC
- {
- .name = "tcpc",
+ { .name = "tcpc",
.port = I2C_PORT_HOST_TCPC,
.kbps = 100,
.scl = 0,
- .sda = 0
- },
+ .sda = 0 },
#elif defined I2C_PORT_EEPROM
- {
- .name = "eeprom",
+ { .name = "eeprom",
.port = I2C_PORT_EEPROM,
.kbps = 100,
.scl = 0,
- .sda = 0
- },
+ .sda = 0 },
#elif defined I2C_PORT_WLC
- {
- .name = "wlc",
- .port = I2C_PORT_WLC,
- .kbps = 100,
- .scl = 0,
- .sda = 0
- },
+ { .name = "wlc", .port = I2C_PORT_WLC, .kbps = 100, .scl = 0, .sda = 0 },
#endif
};
@@ -141,9 +127,8 @@ int board_get_entropy(void *buffer, int len)
static uint8_t eeprom[CBI_IMAGE_SIZE];
-int eeprom_i2c_xfer(int port, uint16_t addr_flags,
- const uint8_t *out, int out_size,
- uint8_t *in, int in_size, int flags)
+int eeprom_i2c_xfer(int port, uint16_t addr_flags, const uint8_t *out,
+ int out_size, uint8_t *in, int in_size, int flags)
{
static int offset;
