board/dojo/led.c: Format with clang-format
BRANCH=none
TEST=none
@@ -142,18 +142,20 @@ static void board_led_set_battery(void)
break;
case PWR_STATE_DISCHARGE:
if (charge_get_percent() <= 10) {
- battery_led_blink_cycle = battery_ticks %
- (2 * TIMES_TICK_ONE_SEC);
+ battery_led_blink_cycle =
+ battery_ticks % (2 * TIMES_TICK_ONE_SEC);
if (led_auto_control_is_enabled(EC_LED_ID_RIGHT_LED))
battery_led_set_color(RIGHT_PORT,
(battery_led_blink_cycle <
TIMES_TICK_ONE_SEC) ?
- LED_AMBER : LED_OFF);
+ LED_AMBER :
+ LED_OFF);
if (led_auto_control_is_enabled(EC_LED_ID_LEFT_LED))
battery_led_set_color(LEFT_PORT,
(battery_led_blink_cycle <
TIMES_TICK_ONE_SEC) ?
- LED_AMBER : LED_OFF);
+ LED_AMBER :
+ LED_OFF);
} else {
if (led_auto_control_is_enabled(EC_LED_ID_RIGHT_LED))
battery_led_set_color(RIGHT_PORT, LED_OFF);
@@ -167,23 +169,26 @@ static void board_led_set_battery(void)
battery_led_set_color(RIGHT_PORT,
(battery_led_blink_cycle <
TIMES_TICK_HALF_SEC) ?
- LED_AMBER : LED_OFF);
+ LED_AMBER :
+ LED_OFF);
if (led_auto_control_is_enabled(EC_LED_ID_LEFT_LED))
battery_led_set_color(LEFT_PORT,
(battery_led_blink_cycle <
TIMES_TICK_HALF_SEC) ?
- LED_AMBER : LED_OFF);
+ LED_AMBER :
+ LED_OFF);
break;
case PWR_STATE_CHARGE_NEAR_FULL:
set_active_port_color(LED_WHITE);
break;
case PWR_STATE_IDLE: /* External power connected in IDLE */
if (chflags & CHARGE_FLAG_FORCE_IDLE) {
- battery_led_blink_cycle = battery_ticks %
- (2 * TIMES_TICK_ONE_SEC);
- set_active_port_color((battery_led_blink_cycle <
- TIMES_TICK_ONE_SEC) ?
- LED_AMBER : LED_OFF);
+ battery_led_blink_cycle =
+ battery_ticks % (2 * TIMES_TICK_ONE_SEC);
+ set_active_port_color(
+ (battery_led_blink_cycle < TIMES_TICK_ONE_SEC) ?
+ LED_AMBER :
+ LED_OFF);
} else
set_active_port_color(LED_WHITE);
break;
@@ -205,7 +210,8 @@ static void board_led_set_power(void)
} else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND)) {
power_led_blink_cycle = power_ticks % (2 * TIMES_TICK_ONE_SEC);
power_led_set_color(power_led_blink_cycle < TIMES_TICK_ONE_SEC ?
- LED_WHITE : LED_OFF);
+ LED_WHITE :
+ LED_OFF);
} else {
power_led_set_color(LED_OFF);
}
