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 <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2025-05-28 12:27:53 +01:00 committed by Benjamin Cabé
commit 77763a2800

View file

@ -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;
};