diff options
author | Keith Short <keithshort@chromium.org> | 2023-04-17 14:17:50 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-17 23:28:50 +0000 |
commit | 2ed86ebbcb85842532c9e80e5a82711a1caab1cc (patch) | |
tree | ea345579ec42fbfeab68164d53399054dd0d6123 /zephyr/program/nissa/nereid/src/usbc.c | |
parent | 187f87afaa39ed24c0a6fa30782b6379ed05fed1 (diff) | |
download | chrome-ec-2ed86ebbcb85842532c9e80e5a82711a1caab1cc.tar.gz |
zephyr: Eliminate pointer from SYS_INIT functions
The upstream change
https://github.com/zephyrproject-rtos/zephyr/pull/51217 modified the
function signature for the SYS_INIT call, eliminating the unused device
pointer.
Run the Zephyr provided script
./zephyr/scripts/utils/migrate_sys_init.py to update all callers.
BUG=b:278595739
BRANCH=none
TEST=zmake build -a
Cq-Depend: chromium:4422804
Change-Id: I881bc536cef43a7c3ac4bc5eb3ce1893237bbd1f
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4437049
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'zephyr/program/nissa/nereid/src/usbc.c')
-rw-r--r-- | zephyr/program/nissa/nereid/src/usbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/program/nissa/nereid/src/usbc.c b/zephyr/program/nissa/nereid/src/usbc.c index 3ce489e357..e3e18e0f33 100644 --- a/zephyr/program/nissa/nereid/src/usbc.c +++ b/zephyr/program/nissa/nereid/src/usbc.c @@ -76,7 +76,7 @@ static void board_chargers_suspend(struct ap_power_ev_callback *const cb, fn(CHARGER_SECONDARY); } -static int board_chargers_suspend_init(const struct device *unused) +static int board_chargers_suspend_init(void) { static struct ap_power_ev_callback cb = { .handler = board_chargers_suspend, |