summaryrefslogtreecommitdiff
path: root/common/charger.c
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:03:44 +0000
commit034c0c13c3bf0429e658a2246475039d020143c7 (patch)
tree635a98d3a28fcc277f68b35e5283879cef55dfcd /common/charger.c
parent974eef0d1056e43debaa74004a705474a0e57416 (diff)
downloadchrome-ec-034c0c13c3bf0429e658a2246475039d020143c7.tar.gz
hooks: add HOOK_PRIO_POST_I2C
Add the HOOK_PRIO_POST_I2C alias for (HOOK_PRIO_INIT_I2C+1). This more clearly identifies the intent of this priority level. Applied only to common code and to Zephyr boards. BUG=none BRANCH=none TEST=compare_build.sh TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ia5b8c594e1f06ae1a982770f75b63bb4ba44191f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3553669 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'common/charger.c')
-rw-r--r--common/charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/charger.c b/common/charger.c
index 0668bfb69f..38eb91faf5 100644
--- a/common/charger.c
+++ b/common/charger.c
@@ -271,7 +271,7 @@ static void charger_chips_init(void)
chg_chips[chip].drv->init(chip);
}
}
-DECLARE_HOOK(HOOK_INIT, charger_chips_init, HOOK_PRIO_INIT_I2C + 1);
+DECLARE_HOOK(HOOK_INIT, charger_chips_init, HOOK_PRIO_POST_I2C);
enum ec_error_list charger_post_init(void)
{