board/reef/led.c: Format with clang-format
BRANCH=none
TEST=none
#define LED_ON_1SEC_TICKS 1
#define LED_ON_2SECS_TICKS 2
-const enum ec_led_id supported_led_ids[] = {
- EC_LED_ID_BATTERY_LED};
+const enum ec_led_id supported_led_ids[] = { EC_LED_ID_BATTERY_LED };
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
@@ -112,16 +111,19 @@ static void led_set_battery(void)
} else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND)) {
/* Blink once every four seconds. */
led_set_color_battery(
- (suspend_ticks % LED_TOTAL_4SECS_TICKS)
- < LED_ON_1SEC_TICKS ? LED_AMBER : LED_OFF);
+ (suspend_ticks % LED_TOTAL_4SECS_TICKS) <
+ LED_ON_1SEC_TICKS ?
+ LED_AMBER :
+ LED_OFF);
} else {
led_set_color_battery(LED_OFF);
}
break;
case PWR_STATE_ERROR:
- led_set_color_battery(
- (battery_ticks % LED_TOTAL_2SECS_TICKS <
- LED_ON_1SEC_TICKS) ? LED_AMBER : LED_OFF);
+ led_set_color_battery((battery_ticks % LED_TOTAL_2SECS_TICKS <
+ LED_ON_1SEC_TICKS) ?
+ LED_AMBER :
+ LED_OFF);
break;
case PWR_STATE_CHARGE_NEAR_FULL:
led_set_color_battery(LED_BLUE);
@@ -130,7 +132,9 @@ static void led_set_battery(void)
if (charge_get_flags() & CHARGE_FLAG_FORCE_IDLE)
led_set_color_battery(
(battery_ticks % LED_TOTAL_4SECS_TICKS <
- LED_ON_2SECS_TICKS) ? LED_AMBER : LED_BLUE);
+ LED_ON_2SECS_TICKS) ?
+ LED_AMBER :
+ LED_BLUE);
else
led_set_color_battery(LED_BLUE);
break;
