From f34f06058890e8a2628429bf67917dc8d6996487 Mon Sep 17 00:00:00 2001 From: Chen Xingyu Date: Thu, 14 Mar 2024 11:56:01 +0800 Subject: [PATCH] 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 --- include/zephyr/drivers/led.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zephyr/drivers/led.h b/include/zephyr/drivers/led.h index cb178a9442d..8f01da811b6 100644 --- a/include/zephyr/drivers/led.h +++ b/include/zephyr/drivers/led.h @@ -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;