diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2022-04-07 14:58:29 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-07 08:29:29 +0000 |
commit | 0301c7219420b4bbcb2037d63403d22ad0e2f8df (patch) | |
tree | 1ba24a6f8a43ad20f4d9f14f70a2aace21953799 | |
parent | 5058d3f42b1e6ed8a0402b0317722dc77f5e9b53 (diff) | |
download | chrome-ec-0301c7219420b4bbcb2037d63403d22ad0e2f8df.tar.gz |
zephyr: npcx: fix hook type
The hook type was wrong at CL:3518465. Fix this accordingly.
BUG=b:223800037, b:226295577
TEST=kingler shutdown properly
BRANCH=none
Change-Id: Idd22411bc57ad655c00190df9392fa4a5d8b218b
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3574428
Reviewed-by: Rong Chang <rongchang@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
-rw-r--r-- | zephyr/shim/chip/npcx/shi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/shim/chip/npcx/shi.c b/zephyr/shim/chip/npcx/shi.c index 3769b8a52b..4512e4ab9e 100644 --- a/zephyr/shim/chip/npcx/shi.c +++ b/zephyr/shim/chip/npcx/shi.c @@ -61,7 +61,7 @@ static void shi_power_change(struct ap_power_ev_callback *cb, shi_enable(); break; - case AP_POWER_SHUTDOWN_COMPLETE: + case AP_POWER_SUSPEND_COMPLETE: shi_disable(); break; #else @@ -69,7 +69,7 @@ static void shi_power_change(struct ap_power_ev_callback *cb, shi_enable(); break; - case AP_POWER_SHUTDOWN: + case AP_POWER_SUSPEND: shi_disable(); break; #endif |