summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-01-28 10:01:57 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-29 18:05:21 +0000
commit15092a17b2b93d948dc3724925ede724ad23d8f4 (patch)
tree2634be16ddbb35ccb99daff784c2b836a50b47c3 /common
parentd24ce4a74e449d705eadb860569543dab5d78d84 (diff)
downloadchrome-ec-15092a17b2b93d948dc3724925ede724ad23d8f4.tar.gz
hooks: add HOOK_PRIO_POST_POWER_BUTTON
Add the HOOK_PRIO_POST_POWER_BUTTON alias for (HOOK_PRIO_INIT_POWER_BUTTON+1). This more clearly identifies the intent of this priority level. BUG=none BRANCH=none TEST=compare_build.sh Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Icc009a74cb87d3fdec1360e00bb41fdbb10a6e8a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3553678 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/power_button_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c
index b87088e01d..ba972ca876 100644
--- a/common/power_button_x86.c
+++ b/common/power_button_x86.c
@@ -562,7 +562,7 @@ static void power_button_pulse_setting_restore_state(void)
power_button_pulse_enabled = *state;
}
DECLARE_HOOK(HOOK_INIT, power_button_pulse_setting_restore_state,
- HOOK_PRIO_INIT_POWER_BUTTON + 1);
+ HOOK_PRIO_POST_POWER_BUTTON);
static void power_button_pulse_setting_preserve_state(void)
{