summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/led_driver/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/led_driver/led.c')
-rw-r--r--zephyr/shim/src/led_driver/led.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/zephyr/shim/src/led_driver/led.c b/zephyr/shim/src/led_driver/led.c
index 19324487e9..322841d61b 100644
--- a/zephyr/shim/src/led_driver/led.c
+++ b/zephyr/shim/src/led_driver/led.c
@@ -36,11 +36,13 @@ struct led_color_node_t {
#define DECLARE_PINS_NODE(id) extern struct led_pins_node_t PINS_NODE(id);
#if CONFIG_PLATFORM_EC_LED_DT_PWM
-DT_FOREACH_CHILD(DT_COMPAT_GET_ANY_STATUS_OKAY(cros_ec_pwm_led_pins),
- DECLARE_PINS_NODE)
+DT_FOREACH_CHILD_STATUS_OKAY_VARGS(
+ DT_COMPAT_GET_ANY_STATUS_OKAY(cros_ec_pwm_led_pins), DT_FOREACH_CHILD,
+ DECLARE_PINS_NODE)
#elif CONFIG_PLATFORM_EC_LED_DT_GPIO
-DT_FOREACH_CHILD(DT_COMPAT_GET_ANY_STATUS_OKAY(cros_ec_gpio_led_pins),
- DECLARE_PINS_NODE)
+DT_FOREACH_CHILD_STATUS_OKAY_VARGS(
+ DT_COMPAT_GET_ANY_STATUS_OKAY(cros_ec_gpio_led_pins), DT_FOREACH_CHILD,
+ DECLARE_PINS_NODE)
#endif
/*