zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
9.74k stars 6k forks source link

drivers: ncp5623: check led_info for all LEDs #72201

Closed simonguinot closed 1 week ago

simonguinot commented 2 weeks ago

With the current code, when three separate monochrome LEDs are defined in DT, only the information from the first LED is checked during driver initialization. This patch fixes the code to verify the information of each LED.