board/kappa/led.c: Format with clang-format
BRANCH=none
TEST=none
@@ -87,11 +87,10 @@ static void led_set_battery(void)
battery_ticks++;
/* override battery led for system suspend */
- if (chipset_in_state(CHIPSET_STATE_SUSPEND |
- CHIPSET_STATE_STANDBY) &&
+ 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;
}
@@ -119,8 +118,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);
