board/morphius/led.c: Format with clang-format
BRANCH=none
TEST=none
static int ticks;
-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);
@@ -133,8 +131,8 @@ static void suspend_led_update_deferred(void)
if (ticks <= TICKS_STEP2_DIMMER) {
pwm_set_duty(PWM_CH_POWER_LED, ticks * LED_BAT_S3_PWM_RESCALE);
} else if (ticks <= TICKS_STEP3_OFF) {
- pwm_set_duty(PWM_CH_POWER_LED,
- (TICKS_STEP3_OFF - ticks) * LED_BAT_S3_PWM_RESCALE);
+ pwm_set_duty(PWM_CH_POWER_LED, (TICKS_STEP3_OFF - ticks) *
+ LED_BAT_S3_PWM_RESCALE);
} else {
ticks = TICKS_STEP1_BRIGHTER;
delay = LED_BAT_S3_OFF_TIME_MS * MSEC;
@@ -204,9 +202,10 @@ static void led_set_power(void)
power_ticks = 0;
while (blink_ticks < LED_PWR_TICKS_PER_CYCLE) {
- led_set_color_power(
- (power_ticks % LED_TOTAL_TICKS) < LED_ON_TICKS ?
- LED_WHITE : LED_OFF);
+ led_set_color_power((power_ticks % LED_TOTAL_TICKS) <
+ LED_ON_TICKS ?
+ LED_WHITE :
+ LED_OFF);
previous_state_suspend = 1;
return;
