Skip to content

Commit f34f060

Browse files
xingrzfabiobaltieri
authored andcommitted
include: drivers: led: Correct comment for struct led_info
The comments for `index` and `num_colors` in `struct led_info` were mistakenly swapped. This commit corrects them to accurately reflect their actual purpose. Signed-off-by: Chen Xingyu <[email protected]>
1 parent 154b2b9 commit f34f060

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
@@ -36,9 +36,9 @@ extern "C" {
3636
struct led_info {
3737
/** LED label */
3838
const char *label;
39-
/** Number of colors per LED */
40-
uint32_t index;
4139
/** Index of the LED on the controller */
40+
uint32_t index;
41+
/** Number of colors per LED */
4242
uint8_t num_colors;
4343
/** Mapping of the LED colors */
4444
const uint8_t *color_mapping;

0 commit comments

Comments
 (0)