This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4b8ac0f59043dc9772714d40883ea94ec67f6f41 Author: Kerogit <[email protected]> AuthorDate: Tue Oct 20 22:29:04 2026 +0200 drivers/leds/ws2812: fix obsolete function description The text for ws2812_register described parameters which the function does not receive. This replaced them with the parameter which the function accepts but which wasn't mentioned. Some of removed parameters are now part of the configuration struct, removed text was moved to that struct. Signed-off-by: Kerogit <[email protected]> --- drivers/leds/ws2812.c | 4 +--- include/nuttx/leds/ws2812.h | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/leds/ws2812.c b/drivers/leds/ws2812.c index 43de7121837..6988a9b24c0 100644 --- a/drivers/leds/ws2812.c +++ b/drivers/leds/ws2812.c @@ -600,9 +600,7 @@ static off_t ws2812_seek(FAR struct file *filep, off_t offset, int whence) * * Input Parameters: * dev_path - The full path to the driver to register. E.g., "/dev/leds0" - * count - The number of ws2812s in the chain - * has_white - Set true if the ws2812s in the chain have while LEDs - * slow_leds - Set true to support older 400 kHz leds. + * dev_data - Configuration of the LED chain * * Returned Value: * Zero (OK) on success; a negated errno value on failure. diff --git a/include/nuttx/leds/ws2812.h b/include/nuttx/leds/ws2812.h index 59ae559ab8a..bbee3407acb 100644 --- a/include/nuttx/leds/ws2812.h +++ b/include/nuttx/leds/ws2812.h @@ -97,8 +97,9 @@ struct ws2812_dev_s uint32_t clock; mutex_t lock; int port; - uint16_t nleds; - bool has_white; + uint16_t nleds; /* Count of WS2812s in the chain */ + bool has_white; /* Set true if chain has LED with + * white component */ }; #endif
