The current code assumes (especially in the lp50xx_set_color function) that the number of LED colors defined in DT is not greater than 3. But since this is not checked, then this is not necessarily the case... This patch consolidates the initialization of the lp50xx LED driver by checking the number of colors for each LED found in DT. Signed-off-by: Simon Guinot <simon.guinot@sequanux.org> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| ht16k33.c | ||
| is31fl3194.c | ||
| is31fl3216a.c | ||
| is31fl3733.c | ||
| Kconfig | ||
| Kconfig.gpio | ||
| Kconfig.ht16k33 | ||
| Kconfig.is31fl3194 | ||
| Kconfig.is31fl3216a | ||
| Kconfig.is31fl3733 | ||
| Kconfig.lp50xx | ||
| Kconfig.lp3943 | ||
| Kconfig.lp5562 | ||
| Kconfig.lp5569 | ||
| Kconfig.ncp5623 | ||
| Kconfig.npm1300 | ||
| Kconfig.pca9633 | ||
| Kconfig.pwm | ||
| Kconfig.tlc59108 | ||
| Kconfig.xec | ||
| led_context.h | ||
| led_gpio.c | ||
| led_handlers.c | ||
| led_mchp_xec.c | ||
| led_npm1300.c | ||
| led_pwm.c | ||
| led_shell.c | ||
| lp50xx.c | ||
| lp3943.c | ||
| lp5562.c | ||
| lp5569.c | ||
| ncp5623.c | ||
| pca9633.c | ||
| tlc59108.c | ||