board/rammus/led.c: Format with clang-format
BRANCH=none
TEST=none
#define LED_CHARGE_PULSE 10
#define LED_POWER_PULSE 15
-const enum ec_led_id supported_led_ids[] = {
- EC_LED_ID_POWER_LED,
+const enum ec_led_id supported_led_ids[] = { EC_LED_ID_POWER_LED,
EC_LED_ID_BATTERY_LED };
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
@@ -49,22 +48,18 @@ enum led_power_state {
static const struct {
uint8_t led1 : 1;
uint8_t led2 : 1;
-} led_chg_state_table[] = {
- [LED_STATE_DISCHARGE] = {LED_OFF, LED_OFF},
+} led_chg_state_table[] = { [LED_STATE_DISCHARGE] = { LED_OFF, LED_OFF },
[LED_STATE_CHARGE] = { LED_OFF, LED_ON },
[LED_STATE_FULL] = { LED_ON, LED_OFF },
[LED_STATE_ERROR_PHASE0] = { LED_OFF, LED_OFF },
- [LED_STATE_ERROR_PHASE1] = {LED_OFF, LED_ON}
-};
+ [LED_STATE_ERROR_PHASE1] = { LED_OFF, LED_ON } };
static const struct {
uint8_t led : 1;
-} led_pwr_state_table[] = {
- [LED_STATE_S0] = {LED_ON},
+} led_pwr_state_table[] = { [LED_STATE_S0] = { LED_ON },
[LED_STATE_S3_PHASE0] = { LED_OFF },
[LED_STATE_S3_PHASE1] = { LED_ON },
- [LED_STATE_S5] = {LED_OFF}
-};
+ [LED_STATE_S5] = { LED_OFF } };
void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range)
{
