board/oak/led.c: Format with clang-format
BRANCH=none
TEST=none
#include "util.h"
#include "system.h"
-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);
@@ -131,8 +129,7 @@ static void oak_led_set_power(int board_version)
bat_led_set(PWR_LED_ORANGE, 0);
} else if (chipset_in_state(CHIPSET_STATE_SUSPEND)) {
bat_led_set(PWR_LED_GREEN, 0);
- bat_led_set(PWR_LED_ORANGE,
- (power_second & 3) ? 0 : 1);
+ bat_led_set(PWR_LED_ORANGE, (power_second & 3) ? 0 : 1);
}
break;
default:
@@ -191,7 +188,8 @@ static void oak_led_set_battery(int board_version)
default:
/*
* Put power control here since we are using the "battery" LED.
- * This allows LED autocontrol to be turned off by cmd during factory test.
+ * This allows LED autocontrol to be turned off by cmd during
+ * factory test.
*
* PWR LED behavior:
* Power on: Green
@@ -205,8 +203,8 @@ static void oak_led_set_battery(int board_version)
else if (chipset_in_state(CHIPSET_STATE_SUSPEND)) {
int cycle_time = 4;
/* Oak rev5 with GlaDOS ID has a extremely power
- * comsuming LED. Increase LED blink cycle time to reduce
- * S3 power comsuption. */
+ * comsuming LED. Increase LED blink cycle time to
+ * reduce S3 power comsuption. */
if (board_version >= OAK_REV5)
cycle_time = 10;
bat_led_set(BAT_LED_GREEN,
