summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2019-11-27 11:31:54 +0800
committerCommit Bot <commit-bot@chromium.org>2019-11-29 06:59:58 +0000
commit03072bf685a25485259bae62c8e223377a797f85 (patch)
treef7077aa32e4b62d5282f8ce0b4a4a083ca8fb517
parentdc721411f290def227af1c8fa6373a2ac6a157e7 (diff)
downloadvboot-03072bf685a25485259bae62c8e223377a797f85.tar.gz
firmware: Add static keyword to power_button_state
Since power_button_state is only used within vboot_ui.c, it should be declared static. BRANCH=none BUG=none TEST=emerge-nami vboot_reference Change-Id: I392f137af15b36cf343817c681b18434e33e53e4 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1937048 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org>
-rw-r--r--firmware/lib/vboot_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_ui.c b/firmware/lib/vboot_ui.c
index 306e22da..bcfd2008 100644
--- a/firmware/lib/vboot_ui.c
+++ b/firmware/lib/vboot_ui.c
@@ -24,7 +24,7 @@
#include "vboot_ui_common.h"
/* Global variables */
-enum {
+static enum {
POWER_BUTTON_HELD_SINCE_BOOT = 0,
POWER_BUTTON_RELEASED,
POWER_BUTTON_PRESSED, /* must have been previously released */