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:
parent
fdf713ab51
commit
77763a2800
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue