diff options
author | Simon Glass <sjg@chromium.org> | 2018-08-22 09:22:45 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-24 22:16:54 -0700 |
commit | ec345092dd8d98d491c28c7d60d9edd2bd61d920 (patch) | |
tree | 358953d547d82366deb54f4744469d9a65dc16a3 /chip | |
parent | 3b39bc56d38511e10871447392b709b3b8e65637 (diff) | |
download | chrome-ec-ec345092dd8d98d491c28c7d60d9edd2bd61d920.tar.gz |
chip/npcx: Make check_reset_cause() static
This function is not called from outside this file so make it static. Also
drop a pointless comment, and rename the function since the 'system' prefix
suggests it is defined in system.h (which it is not).
BUG=chromium:876737
BRANCH=none
TEST=make -j50 BOARD=grunt
Change-Id: Ic429fb1da2e56e1888e008f4739c90e8ed2c1947
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1184975
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/npcx/system.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chip/npcx/system.c b/chip/npcx/system.c index c6440134ad..a286090bd8 100644 --- a/chip/npcx/system.c +++ b/chip/npcx/system.c @@ -353,8 +353,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown, HOOK_PRIO_DEFAULT - 1); #endif -/* Check reset cause */ -void system_check_reset_cause(void) +static void check_reset_cause(void) { uint32_t hib_wake_flags = bbram_data_read(BBRM_DATA_INDEX_WAKE); uint32_t flags = bbram_data_read(BBRM_DATA_INDEX_SAVED_RESET_FLAGS); @@ -886,7 +885,7 @@ int system_is_reboot_warm(void) * Check reset cause here, * gpio_pre_init is executed faster than system_pre_init */ - system_check_reset_cause(); + check_reset_cause(); reset_flags = system_get_reset_flags(); if ((reset_flags & RESET_FLAG_RESET_PIN) || |