summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2022-04-26 19:10:11 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-05 16:22:55 +0000
commit3aa77af645c9d5971271a911e3978ec6e73b9b83 (patch)
treef9620b1ada84a7f5b7d67bbd25d326ce6857c1ee
parenteeaeaf1bb9c3acf219a588793005c18481e040d0 (diff)
downloadchrome-ec-3aa77af645c9d5971271a911e3978ec6e73b9b83.tar.gz
PCHG: Remove device_enable_event
PCHG no longer uses the device event subsystem for EC-AP notification. This patch removes unused hook and device_enable_event. This is basically a revert of CL:2863564. BUG=None BRANCH=None TEST=Brask Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I0ca713253c3a802f977144ea8f0c0f728d9bebb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609109 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Parth Malkan <parthmalkan@google.com>
-rw-r--r--common/peripheral_charger.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/common/peripheral_charger.c b/common/peripheral_charger.c
index 0f0c93c2fb..dedd254df7 100644
--- a/common/peripheral_charger.c
+++ b/common/peripheral_charger.c
@@ -6,7 +6,6 @@
#include "atomic.h"
#include "chipset.h"
#include "common.h"
-#include "device_event.h"
#include "hooks.h"
#include "host_command.h"
#include "mkbp_event.h"
@@ -535,14 +534,6 @@ void pchg_irq(enum gpio_signal signal)
}
-static void pchg_suspend_complete(void)
-{
- CPRINTS("%s", __func__);
- device_enable_event(EC_DEVICE_EVENT_WLC);
-}
-DECLARE_HOOK(HOOK_CHIPSET_SUSPEND_COMPLETE, pchg_suspend_complete,
- HOOK_PRIO_DEFAULT);
-
static void pchg_startup(void)
{
struct pchg *ctx;