From 58c41ee275ec06a86c299a8355a0a456e8ad51c1 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Tue, 9 Apr 2019 17:22:03 +0800 Subject: button: fix compile error when CONFIG_LED_COMMON not defined Compiler complains about debug_mode_blink_led defined but not used. Fix this. BUG=None TEST=make BRANCH=None Change-Id: I6f5431d0867bc4f37bc1e74d48f4b124305d4012 Signed-off-by: Ting Shen Reviewed-on: https://chromium-review.googlesource.com/1559100 Commit-Ready: Ting Shen Tested-by: Ting Shen Reviewed-by: Yilun Lin --- common/button.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/button.c b/common/button.c index 88cf9e69b6..cdc8eebbc7 100644 --- a/common/button.c +++ b/common/button.c @@ -471,11 +471,13 @@ static int debug_button_pressed(int mask) return debug_button_mask() == mask; } +#ifdef CONFIG_LED_COMMON static int debug_mode_blink_led(void) { return ((curr_debug_state != STATE_DEBUG_NONE) && (curr_debug_state != STATE_DEBUG_CHECK)); } +#endif static void debug_mode_transition(enum debug_state next_state) { -- cgit v1.2.1