summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/pwm_led.c
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-03-31 22:09:51 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-01 16:04:51 +0000
commitf52f554ab87c73c41d5adc61cf5f9cf3a1b94315 (patch)
treeb0384018e661b63bb20e46931fda9071dbd74e45 /zephyr/shim/src/pwm_led.c
parentb5c8a0413a47f179bdd3e1d710d317b1798f5ae9 (diff)
downloadchrome-ec-f52f554ab87c73c41d5adc61cf5f9cf3a1b94315.tar.gz
Revert "zephyr: shim: convert HOOK_INIT to SYS_INIT"
This reverts commit 49bd176f91e764b530193dfa89390c3c6bed62c6. Reason for revert: b:227661993: EFS2 broken after SYS_INIT changes Original change's description: > zephyr: shim: convert HOOK_INIT to SYS_INIT > > Convert all HOOK_INIT calls to the equivalent SYS_INIT. > > BUG=b:226434387 > BRANCH=none > TEST=zmake testall > > Signed-off-by: Keith Short <keithshort@chromium.org> > Change-Id: Ie046e07cf78a4f4b3704401a605d2fb15069479e > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3553849 > Reviewed-by: Al Semjonovs <asemjonovs@google.com> Bug: b:226434387 Change-Id: Ie0a2244b39fdef53cd5009ded22dfc23063e8842 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3564802 Tested-by: Keith Short <keithshort@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Al Semjonovs <asemjonovs@google.com> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim/src/pwm_led.c')
-rw-r--r--zephyr/shim/src/pwm_led.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/zephyr/shim/src/pwm_led.c b/zephyr/shim/src/pwm_led.c
index ad11456ab5..cfa7005f04 100644
--- a/zephyr/shim/src/pwm_led.c
+++ b/zephyr/shim/src/pwm_led.c
@@ -208,15 +208,12 @@ static void led_set_charge_port_tick(void)
}
DECLARE_HOOK(HOOK_TICK, led_set_charge_port_tick, HOOK_PRIO_DEFAULT);
-static int board_led_init(const struct device *unused)
+static void board_led_init(void)
{
- ARG_UNUSED(unused);
/* Illuminate motherboard and daughter board LEDs equally to start. */
pwm_led_set_duty(&_pwm_led_dt_sidesel, 50);
-
- return 0;
}
-SYS_INIT(board_led_init, APPLICATION, HOOK_PRIO_DEFAULT);
+DECLARE_HOOK(HOOK_INIT, board_led_init, HOOK_PRIO_DEFAULT);
#endif /* DT_INST_NODE_HAS_PROP(0, sidesel) */