Skip to content

Commit 77763a2

Browse files
fabiobaltierikartben
authored andcommitted
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>
1 parent fdf713a commit 77763a2

File tree

1 file changed

+2
-2
lines changed
  • include/zephyr/drivers

1 file changed

+2
-2
lines changed

include/zephyr/drivers/led.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ typedef int (*led_api_write_channels)(const struct device *dev,
117117
* @brief LED driver API
118118
*/
119119
__subsystem struct led_driver_api {
120-
/* Mandatory callbacks. */
120+
/* Mandatory callbacks, either on/off or set_brightness. */
121121
led_api_on on;
122122
led_api_off off;
123+
led_api_set_brightness set_brightness;
123124
/* Optional callbacks. */
124125
led_api_blink blink;
125126
led_api_get_info get_info;
126-
led_api_set_brightness set_brightness;
127127
led_api_set_color set_color;
128128
led_api_write_channels write_channels;
129129
};

0 commit comments

Comments
 (0)