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 <hi@xingrz.me>
This commit is contained in:
Chen Xingyu 2024-03-14 11:56:01 +08:00 committed by Fabio Baltieri
parent 154b2b9c1c
commit f34f060588

View file

@ -36,9 +36,9 @@ extern "C" {
struct led_info {
/** LED label */
const char *label;
/** Number of colors per LED */
uint32_t index;
/** Index of the LED on the controller */
uint32_t index;
/** Number of colors per LED */
uint8_t num_colors;
/** Mapping of the LED colors */
const uint8_t *color_mapping;