Skip to content

led: fix up the API requirement comment #90735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/zephyr/drivers/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Loading