summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-04-09 17:22:03 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-04-11 01:36:38 -0700
commit58c41ee275ec06a86c299a8355a0a456e8ad51c1 (patch)
tree3edfe12b8bde03b417a9ac3ab583738eff5fce6c /common
parentac05e6ab2098d9f01efa08e94809dea6f02a5c93 (diff)
downloadchrome-ec-58c41ee275ec06a86c299a8355a0a456e8ad51c1.tar.gz
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 <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/1559100 Commit-Ready: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/button.c2
1 files changed, 2 insertions, 0 deletions
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)
{