board/npcx_evb_arm/board.c: Format with clang-format
BRANCH=none
TEST=none
/******************************************************************************/
/* ADC channels. Must be in the exactly same order as in enum adc_channel. */
const struct adc_t adc_channels[] = {
- [ADC_CH_0] = {"ADC0", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
- [ADC_CH_1] = {"ADC1", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
- [ADC_CH_2] = {"ADC2", NPCX_ADC_CH2, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
+ [ADC_CH_0] = { "ADC0", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX + 1,
+ 0 },
+ [ADC_CH_1] = { "ADC1", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX + 1,
+ 0 },
+ [ADC_CH_2] = { "ADC2", NPCX_ADC_CH2, ADC_MAX_VOLT, ADC_READ_MAX + 1,
+ 0 },
};
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
@@ -79,41 +82,31 @@ BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT);
/******************************************************************************/
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "master0-0",
+ { .name = "master0-0",
.port = NPCX_I2C_PORT0_0,
.kbps = 100,
.scl = GPIO_I2C0_SCL0,
- .sda = GPIO_I2C0_SDA0
- },
- {
- .name = "master0-1",
+ .sda = GPIO_I2C0_SDA0 },
+ { .name = "master0-1",
.port = NPCX_I2C_PORT0_1,
.kbps = 100,
.scl = GPIO_I2C0_SCL1,
- .sda = GPIO_I2C0_SDA1
- },
- {
- .name = "master1",
+ .sda = GPIO_I2C0_SDA1 },
+ { .name = "master1",
.port = NPCX_I2C_PORT1,
.kbps = 100,
.scl = GPIO_I2C1_SCL,
- .sda = GPIO_I2C1_SDA
- },
- {
- .name = "master2",
+ .sda = GPIO_I2C1_SDA },
+ { .name = "master2",
.port = NPCX_I2C_PORT2,
.kbps = 100,
.scl = GPIO_I2C2_SCL,
- .sda = GPIO_I2C2_SDA
- },
- {
- .name = "master3",
+ .sda = GPIO_I2C2_SDA },
+ { .name = "master3",
.port = NPCX_I2C_PORT3,
.kbps = 100,
.scl = GPIO_I2C3_SCL,
- .sda = GPIO_I2C3_SDA
- },
+ .sda = GPIO_I2C3_SDA },
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
