board/casta/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -65,10 +65,10 @@ static void ppc_interrupt(enum gpio_signal signal)
/* ADC channels */
const struct adc_t adc_channels[] = {
- [ADC_TEMP_SENSOR_AMB] = {
- "TEMP_AMB", NPCX_ADC_CH0, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
- [ADC_TEMP_SENSOR_CHARGER] = {
- "TEMP_CHARGER", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0},
+ [ADC_TEMP_SENSOR_AMB] = { "TEMP_AMB", NPCX_ADC_CH0, ADC_MAX_VOLT,
+ ADC_READ_MAX + 1, 0 },
+ [ADC_TEMP_SENSOR_CHARGER] = { "TEMP_CHARGER", NPCX_ADC_CH1,
+ ADC_MAX_VOLT, ADC_READ_MAX + 1, 0 },
};
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
@@ -108,8 +108,7 @@ static timestamp_t battery_last_i2c_time;
static int is_battery_i2c(const int port, const uint16_t addr_flags)
{
- return (port == I2C_PORT_BATTERY)
- && (addr_flags == BATTERY_ADDR_FLAGS);
+ return (port == I2C_PORT_BATTERY) && (addr_flags == BATTERY_ADDR_FLAGS);
}
static int is_battery_port(int port)
@@ -174,7 +173,6 @@ static void set_input_limit_on_ac_removal(void)
return;
charger_set_input_current_limit(0, CONFIG_CHARGER_INPUT_CURRENT);
-
}
DECLARE_HOOK(HOOK_AC_CHANGE, set_input_limit_on_ac_removal, HOOK_PRIO_DEFAULT);
