diff options
author | Keith Short <keithshort@chromium.org> | 2022-01-28 14:28:16 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-29 18:04:26 +0000 |
commit | e38f4cb8739bdc11a9abf2bd4546b697acf32a9a (patch) | |
tree | 18e79aad4c4cc472ce52b965f54bf57dfd12907b /board | |
parent | 863d8d8344ce306668fc0e88c78a928e4e2716af (diff) | |
download | chrome-ec-e38f4cb8739bdc11a9abf2bd4546b697acf32a9a.tar.gz |
hooks: rename charger init priority to match others
Rename HOOK_PRIO_CHARGE_MANAGER_INIT to HOOK_PRIO_INIT_CHARGE_MANAGER,
matching the pattern used for the other initialization priorities.
BUG=none
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Icb80b3cb1297888fcde2eb7d6de86fbc215fe212
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3553673
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/ambassador/board.c | 2 | ||||
-rw-r--r-- | board/brask/board.c | 2 | ||||
-rw-r--r-- | board/dooly/board.c | 2 | ||||
-rw-r--r-- | board/fizz/board.c | 4 | ||||
-rw-r--r-- | board/kinox/board.c | 2 | ||||
-rw-r--r-- | board/moli/board.c | 2 | ||||
-rw-r--r-- | board/puff/board.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/board/ambassador/board.c b/board/ambassador/board.c index a5abbaa130..5cf319bc79 100644 --- a/board/ambassador/board.c +++ b/board/ambassador/board.c @@ -237,7 +237,7 @@ static void adp_state_init(void) /* Report charge state from the barrel jack. */ adp_connect_deferred(); } -DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_CHARGE_MANAGER_INIT + 1); +DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); #include "gpio_list.h" /* Must come after other header files. */ diff --git a/board/brask/board.c b/board/brask/board.c index 4353e8b0e9..022ce8f43c 100644 --- a/board/brask/board.c +++ b/board/brask/board.c @@ -243,7 +243,7 @@ static void adp_state_init(void) /* Report charge state from the barrel jack. */ adp_connect_deferred(); } -DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_CHARGE_MANAGER_INIT + 1); +DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); static void board_init(void) { diff --git a/board/dooly/board.c b/board/dooly/board.c index 06e479649d..45ebca1232 100644 --- a/board/dooly/board.c +++ b/board/dooly/board.c @@ -468,7 +468,7 @@ static void adp_state_init(void) /* Report charge state from the barrel jack. */ adp_connect_deferred(); } -DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_CHARGE_MANAGER_INIT + 1); +DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); #include "gpio_list.h" /* Must come after other header files. */ diff --git a/board/fizz/board.c b/board/fizz/board.c index 975401d5a1..a397ca27e4 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -537,7 +537,7 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, /* * In terms of timing, this should always work because - * HOOK_PRIO_CHARGE_MANAGER_INIT is notified after HOOK_PRIO_INIT_I2C. + * HOOK_PRIO_INIT_CHARGE_MANAGER is notified after HOOK_PRIO_INIT_I2C. * If CBI isn't initialized or contains invalid data, we assume it's * a new board. */ @@ -811,7 +811,7 @@ static void board_charge_manager_init(void) } } DECLARE_HOOK(HOOK_INIT, board_charge_manager_init, - HOOK_PRIO_CHARGE_MANAGER_INIT + 1); + HOOK_PRIO_INIT_CHARGE_MANAGER + 1); static void board_init(void) { diff --git a/board/kinox/board.c b/board/kinox/board.c index 0dc4ae5737..43a1cef501 100644 --- a/board/kinox/board.c +++ b/board/kinox/board.c @@ -155,7 +155,7 @@ static void adp_state_init(void) /* Report charge state from the barrel jack. */ adp_connect_deferred(); } -DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_CHARGE_MANAGER_INIT + 1); +DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); static void board_init(void) { diff --git a/board/moli/board.c b/board/moli/board.c index 9ca199d207..10b4de5589 100644 --- a/board/moli/board.c +++ b/board/moli/board.c @@ -186,7 +186,7 @@ static void adp_state_init(void) /* Report charge state from the barrel jack. */ adp_connect_deferred(); } -DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_CHARGE_MANAGER_INIT + 1); +DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); static void board_init(void) { diff --git a/board/puff/board.c b/board/puff/board.c index bf22657bf4..a893de33c3 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -237,7 +237,7 @@ static void adp_state_init(void) /* Report charge state from the barrel jack. */ adp_connect_deferred(); } -DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_CHARGE_MANAGER_INIT + 1); +DECLARE_HOOK(HOOK_INIT, adp_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); #include "gpio_list.h" /* Must come after other header files. */ |