board/burnet/led.c: Format with clang-format
BRANCH=none
TEST=none
#define POWER_LED_ON 0
#define POWER_LED_OFF 1
-const enum ec_led_id supported_led_ids[] = {
- EC_LED_ID_BATTERY_LED,
- EC_LED_ID_POWER_LED
-};
+const enum ec_led_id supported_led_ids[] = { EC_LED_ID_BATTERY_LED,
+ EC_LED_ID_POWER_LED };
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
@@ -111,8 +109,7 @@ static void led_set_power(void)
if (chipset_in_state(CHIPSET_STATE_ON))
led_set_color_power(LED_WHITE);
else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND))
- led_set_color_power(
- (power_tick & 0x2) ? LED_WHITE : LED_OFF);
+ led_set_color_power((power_tick & 0x2) ? LED_WHITE : LED_OFF);
else
led_set_color_power(LED_OFF);
}
@@ -134,8 +131,8 @@ static void led_set_battery(void)
if (chipset_in_state(CHIPSET_STATE_SUSPEND |
CHIPSET_STATE_STANDBY) &&
charge_get_state() != PWR_STATE_CHARGE) {
- led_set_color_battery(power_ticks++ & 0x2 ?
- LED_WHITE : LED_OFF);
+ led_set_color_battery(power_ticks++ & 0x2 ? LED_WHITE :
+ LED_OFF);
return;
}
}
@@ -164,8 +161,8 @@ static void led_set_battery(void)
led_set_color_battery(LED_OFF);
break;
case PWR_STATE_ERROR:
- led_set_color_battery(
- (battery_ticks % 0x2) ? LED_WHITE : LED_OFF);
+ led_set_color_battery((battery_ticks % 0x2) ? LED_WHITE :
+ LED_OFF);
break;
case PWR_STATE_CHARGE_NEAR_FULL:
led_set_color_battery(LED_WHITE);
