From 77763a2800fece515e781d46dbaccdac13ff2c3f Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Wed, 28 May 2025 12:27:53 +0100 Subject: [PATCH] led: fix up the API requirement comment With the current implementation one can implement either on/off or set_brigthness, change the comment to reflect that. Signed-off-by: Fabio Baltieri --- include/zephyr/drivers/led.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zephyr/drivers/led.h b/include/zephyr/drivers/led.h index 869449385c5..dcf1f1c3ed1 100644 --- a/include/zephyr/drivers/led.h +++ b/include/zephyr/drivers/led.h @@ -117,13 +117,13 @@ typedef int (*led_api_write_channels)(const struct device *dev, * @brief LED driver API */ __subsystem struct led_driver_api { - /* Mandatory callbacks. */ + /* Mandatory callbacks, either on/off or set_brightness. */ led_api_on on; led_api_off off; + led_api_set_brightness set_brightness; /* Optional callbacks. */ led_api_blink blink; led_api_get_info get_info; - led_api_set_brightness set_brightness; led_api_set_color set_color; led_api_write_channels write_channels; };