zephyr/drivers/led_strip
Nicolas Pitre 90d1963745 sys: util: move lowercase min/max/clamp to a new minmax.h
Since commit 37717b229f ("sys: util: rename Z_MIN Z_MAX Z_CLAMP to min
max and clamp"), <zephyr/sys/util.h> unconditionally defines function-
like macros named `min`, `max`, and `clamp` in the global namespace (in
C mode). util.h gets pulled in transitively by very broad headers,
including the POSIX layer's <pthread.h>, so any third-party C code that
uses these names as ordinary identifiers (e.g. XNNPACK's static `clamp`
helper and its public `clamp` struct field) fails to build as soon as
<pthread.h> is included.

Following the approach used by Linux, move the lowercase `min`, `max`,
`min3`, `max3`, and `clamp` macros (and their helpers) into a new
<zephyr/sys/minmax.h> header that has to be included explicitly by
source files that want them. util.h keeps the uppercase MIN/MAX/CLAMP,
so most code is unaffected; only the (much smaller) set of files that
actually use the lowercase variants needs to pick up the new include.

Fixes #107853.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2026-05-19 17:49:24 -04:00
..
apa102.c drivers: Convert to use SPI macro without delay parameters 2025-10-01 14:39:36 +03:00
CMakeLists.txt led_strip: add a shell for address RGB LEDs 2026-03-03 17:56:17 +01:00
Kconfig led_strip: add a shell for address RGB LEDs 2026-03-03 17:56:17 +01:00
Kconfig.apa102 drivers: led_strip: Enabling config with DT_HAS_.. 2024-03-20 17:20:08 -05:00
Kconfig.lpd880x drivers: led_strip: Enabling config with DT_HAS_.. 2024-03-20 17:20:08 -05:00
Kconfig.modulino drivers: leds_strip: rename modulino smartleds to pixels 2025-10-20 11:56:08 +02:00
Kconfig.tlc5971 drivers: led_strip: tlc5971: Enable when the dt-node exists 2024-09-21 12:23:45 +01:00
Kconfig.tlc59731 driver: led: add support for TI TLC59731 RGB STRIP controller 2024-05-21 16:50:24 -04:00
Kconfig.ws2812 drivers: Update to use SOC_SERIES_NRF Kconfigs without X suffix 2026-01-20 13:21:38 +00:00
led_strip_shell.c sys: util: move lowercase min/max/clamp to a new minmax.h 2026-05-19 17:49:24 -04:00
lpd880x.c drivers: Convert to use SPI macro without delay parameters 2025-10-01 14:39:36 +03:00
modulino_pixels.c drivers: leds_strip: rename modulino smartleds to pixels 2025-10-20 11:56:08 +02:00
tlc5971.c drivers: fix typo in (interrupt_controller, led_strip, lora, memc, mfd) 2026-03-27 20:21:24 -04:00
tlc59731.c drivers: led_strip: Place API into iterable section 2024-12-02 22:07:42 +00:00
ws2812_gpio.c drivers: led_strip: ws2812_gpio: prevent overflow 2025-09-29 09:58:19 +02:00
ws2812_i2s.c drivers: led_strip: ws2812_i2c: add update_channels 2026-02-28 21:13:05 +01:00
ws2812_rpi_pico_pio.c drivers: led_strip: ws2812_rpi_pico_pio: Add DMA support 2026-01-08 09:33:51 +01:00
ws2812_spi.c drivers: Convert to use SPI macro without delay parameters 2025-10-01 14:39:36 +03:00
ws2812_uart.c drivers: led_strip: Put driver APIs into iterable sections 2026-02-12 09:32:33 +01:00