diff --git a/drivers/led/led_handlers.c b/drivers/led/led_handlers.c index 5fde5e53c1b0d..0fc0754af2af6 100644 --- a/drivers/led/led_handlers.c +++ b/drivers/led/led_handlers.c @@ -75,3 +75,15 @@ static inline int z_vrfy_led_off(const struct device *dev, uint32_t led) return z_impl_led_off((const struct device *)dev, led); } #include + +#ifdef CONFIG_LED_CURRENT_SETTING +static inline int z_vrfy_led_set_current(const struct device *dev, uint32_t led, + uint32_t micro_amps) +{ + K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_LED)); + K_OOPS(K_SYSCALL_DRIVER_LED(dev, set_curent)); + return z_impl_led_set_current((const struct device *)dev, led, + micro_amps); +} +#include +#endif /* CONFIG_LED_CURRENT_SETTING */