diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2019-11-27 11:31:54 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-03 04:10:59 +0000 |
commit | 9bc5e4112d2fd4518242fd954b1986cdb2fcbcd8 (patch) | |
tree | 7c6afcea6139902ad1d766c71108e66b46c081e0 | |
parent | 50b2d570b298ec4279f588cc22ef789867f03fb6 (diff) | |
download | vboot-9bc5e4112d2fd4518242fd954b1986cdb2fcbcd8.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>
(cherry picked from commit 03072bf685a25485259bae62c8e223377a797f85)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1947716
Reviewed-by: Shelley Chen <shchen@chromium.org>
Commit-Queue: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>
-rw-r--r-- | firmware/lib/vboot_ui.c | 2 |
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 */ |