eve: Move enums before declarations in led.c

Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
BUG=none
BRANCH=none
TEST=USE=coreboot-sdk emerge-eve chromeos-ec compiles successfully

Change-Id: Ib068a935bd80ee57388ffcb707b4a2684f7b6d5a
Reviewed-on: https://chromium-review.googlesource.com/592270
Commit-Ready: Stefan Reinauer <reinauer@google.com>
Tested-by: Stefan Reinauer <reinauer@google.com>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Stefan Reinauer
2017-07-28 13:11:53 -07:00
committed by chrome-bot
parent 84a952e0e8
commit 25aa1c13dd

View File

@@ -29,17 +29,6 @@
#define LED_FRAC_BITS 4
#define LED_STEP_MSEC 45
static int led_debug;
static int double_tap;
static int double_tap_tick_count;
static int led_pattern;
static int led_ticks;
static enum led_color led_current_color;
const enum ec_led_id supported_led_ids[] = {
EC_LED_ID_LEFT_LED, EC_LED_ID_RIGHT_LED};
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
/* List of LED colors used */
enum led_color {
LED_OFF = 0,
@@ -74,6 +63,17 @@ enum led_side {
LED_BOTH
};
static int led_debug;
static int double_tap;
static int double_tap_tick_count;
static int led_pattern;
static int led_ticks;
static enum led_color led_current_color;
const enum ec_led_id supported_led_ids[] = {
EC_LED_ID_LEFT_LED, EC_LED_ID_RIGHT_LED};
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
/*
* LED patterns are described as two phases. Each phase has an associated LED
* color and length in beats. The length of each beat is defined by the macro