From b41b1f5ba80108e27fc285ebc00fa76e75d98edd Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Fri, 29 Mar 2013 12:09:19 +0800 Subject: Initialize LP5562 power on init On init, we should either explicitly power on or off LP5562 in case. BUG=none TEST=Manual BRANCH=spring Original-Change-Id: I7e331349090f3383da19f840762fa4d72a1a054b Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/46847 Reviewed-by: Vincent Palatin (cherry picked from commit 4311bc5ccf666d7425f1ea50eee08e3a032e2508) Conflicts: common/lp5562_battery_led.c Change-Id: I2c7aca873d6b9563fb1845437704a7a0c37ab95e Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/47094 Reviewed-by: Vincent Palatin --- board/spring/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/spring/board.c b/board/spring/board.c index d66ffd2e88..69efeee81f 100644 --- a/board/spring/board.c +++ b/board/spring/board.c @@ -349,7 +349,7 @@ static void board_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; -- cgit v1.2.1