baseboard/intelrvp/led_states.c: Format with clang-format
BRANCH=none
TEST=none
@@ -89,13 +89,13 @@ static void led_update_battery(void)
period = led_bat_state_table[led_state][LED_PHASE_0].time +
led_bat_state_table[led_state][LED_PHASE_1].time;
-
}
/* If this state is undefined, turn the LED off */
if (period == 0) {
CPRINTS("Undefined LED behavior for battery state %d,"
- "turning off LED", led_state);
+ "turning off LED",
+ led_state);
led_set_color_battery(LED_OFF);
return;
}
@@ -104,8 +104,8 @@ static void led_update_battery(void)
* Determine which phase of the state table to use. The phase is
* determined if it falls within first phase time duration.
*/
- phase = ticks < led_bat_state_table[led_state][LED_PHASE_0].time ?
- 0 : 1;
+ phase = ticks < led_bat_state_table[led_state][LED_PHASE_0].time ? 0 :
+ 1;
ticks = (ticks + 1) % period;
/* Set the color for the given state and phase */
@@ -142,13 +142,13 @@ static void led_update_power(void)
period = led_pwr_state_table[led_state][LED_PHASE_0].time +
led_pwr_state_table[led_state][LED_PHASE_1].time;
-
}
/* If this state is undefined, turn the LED off */
if (period == 0) {
CPRINTS("Undefined LED behavior for power state %d,"
- "turning off LED", led_state);
+ "turning off LED",
+ led_state);
led_set_color_power(LED_OFF);
return;
}
@@ -157,8 +157,8 @@ static void led_update_power(void)
* Determine which phase of the state table to use. The phase is
* determined if it falls within first phase time duration.
*/
- phase = ticks < led_pwr_state_table[led_state][LED_PHASE_0].time ?
- 0 : 1;
+ phase = ticks < led_pwr_state_table[led_state][LED_PHASE_0].time ? 0 :
+ 1;
ticks = (ticks + 1) % period;
/* Set the color for the given state and phase */
