From 4311bc5ccf666d7425f1ea50eee08e3a032e2508 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Fri, 29 Mar 2013 12:09:19 +0800 Subject: [PATCH] Initialize LP5562 power on init On init, we should either explicitly power on or off LP5562 in case. BUG=none TEST=Manual BRANCH=spring Change-Id: I7e331349090f3383da19f840762fa4d72a1a054b Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/46847 Reviewed-by: Vincent Palatin --- common/lp5562_battery_led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lp5562_battery_led.c b/common/lp5562_battery_led.c index eb1f1f9cd1..65457c60a0 100644 --- a/common/lp5562_battery_led.c +++ b/common/lp5562_battery_led.c @@ -61,7 +61,7 @@ static void battery_led_update(void) /* Current states and next states */ static uint32_t color = LED_COLOR_RED; static int breathing; - static int led_power; + static int led_power = -1; int new_color = LED_COLOR_RED; int new_breathing = 0; int new_led_power;