board/scout/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -212,8 +212,7 @@ static void port_ocp_interrupt(enum gpio_signal signal)
/******************************************************************************/
/* SPI devices */
-const struct spi_device_t spi_devices[] = {
-};
+const struct spi_device_t spi_devices[] = {};
const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices);
/******************************************************************************/
@@ -233,48 +232,36 @@ const struct pwm_t pwm_channels[] = {
/******************************************************************************/
/* I2C port map configuration */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "ina",
+ { .name = "ina",
.port = I2C_PORT_INA,
.kbps = 400,
.scl = GPIO_I2C0_SCL,
- .sda = GPIO_I2C0_SDA
- },
- {
- .name = "ppc0",
+ .sda = GPIO_I2C0_SDA },
+ { .name = "ppc0",
.port = I2C_PORT_PPC0,
.kbps = 400,
.scl = GPIO_I2C1_SCL,
- .sda = GPIO_I2C1_SDA
- },
- {
- .name = "scaler",
+ .sda = GPIO_I2C1_SDA },
+ { .name = "scaler",
.port = I2C_PORT_SCALER,
.kbps = 400,
.scl = GPIO_I2C2_SCL,
- .sda = GPIO_I2C2_SDA
- },
- {
- .name = "tcpc0",
+ .sda = GPIO_I2C2_SDA },
+ { .name = "tcpc0",
.port = I2C_PORT_TCPC0,
.kbps = 400,
.scl = GPIO_I2C3_SCL,
- .sda = GPIO_I2C3_SDA
- },
- {
- .name = "power",
+ .sda = GPIO_I2C3_SDA },
+ { .name = "power",
.port = I2C_PORT_POWER,
.kbps = 400,
.scl = GPIO_I2C5_SCL,
- .sda = GPIO_I2C5_SDA
- },
- {
- .name = "eeprom",
+ .sda = GPIO_I2C5_SDA },
+ { .name = "eeprom",
.port = I2C_PORT_EEPROM,
.kbps = 400,
.scl = GPIO_I2C7_SCL,
- .sda = GPIO_I2C7_SDA
- },
+ .sda = GPIO_I2C7_SDA },
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
@@ -342,8 +329,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
/******************************************************************************/
/* Wake up pins */
-const enum gpio_signal hibernate_wake_pins[] = {
-};
+const enum gpio_signal hibernate_wake_pins[] = {};
const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
/******************************************************************************/
@@ -679,8 +665,7 @@ static void power_monitor(void)
* If CPU is off or suspended, no need to throttle
* or restrict power.
*/
- if (chipset_in_state(CHIPSET_STATE_ANY_OFF |
- CHIPSET_STATE_SUSPEND)) {
+ if (chipset_in_state(CHIPSET_STATE_ANY_OFF | CHIPSET_STATE_SUSPEND)) {
/*
* Slow down monitoring, assume no throttling required.
*/
