Sorting LEDs by alphabet can help developers quickly find the colors they want. Infrared and multicolor LEDs are special so they should be left at the end of the list. Signed-off-by: Shiji Yang <yangshiji66@xxxxxxxxxxx> --- include/dt-bindings/leds/common.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index 9a0d33d02..33c9dd873 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -22,22 +22,23 @@ #define LEDS_BOOST_FIXED 2 /* Standard LED colors */ -#define LED_COLOR_ID_WHITE 0 -#define LED_COLOR_ID_RED 1 -#define LED_COLOR_ID_GREEN 2 -#define LED_COLOR_ID_BLUE 3 -#define LED_COLOR_ID_AMBER 4 -#define LED_COLOR_ID_VIOLET 5 -#define LED_COLOR_ID_YELLOW 6 -#define LED_COLOR_ID_IR 7 -#define LED_COLOR_ID_MULTI 8 /* For multicolor LEDs */ -#define LED_COLOR_ID_RGB 9 /* For multicolor LEDs that can do arbitrary color, +#define LED_COLOR_ID_AMBER 0 +#define LED_COLOR_ID_BLUE 1 +#define LED_COLOR_ID_CYAN 2 +#define LED_COLOR_ID_GREEN 3 +#define LED_COLOR_ID_LIME 4 +#define LED_COLOR_ID_ORANGE 5 +#define LED_COLOR_ID_PINK 6 +#define LED_COLOR_ID_PURPLE 7 +#define LED_COLOR_ID_RED 8 +#define LED_COLOR_ID_VIOLET 9 +#define LED_COLOR_ID_WHITE 10 +#define LED_COLOR_ID_YELLOW 11 +/* These LEDs are special */ +#define LED_COLOR_ID_IR 12 +#define LED_COLOR_ID_MULTI 13 /* For multicolor LEDs */ +#define LED_COLOR_ID_RGB 14 /* For multicolor LEDs that can do arbitrary color, so this would include RGBW and similar */ -#define LED_COLOR_ID_PURPLE 10 -#define LED_COLOR_ID_ORANGE 11 -#define LED_COLOR_ID_PINK 12 -#define LED_COLOR_ID_CYAN 13 -#define LED_COLOR_ID_LIME 14 #define LED_COLOR_ID_MAX 15 /* Standard LED functions */ -- 2.39.2