zephyr/drivers/led_strip
Carles Cufi 8c748fd005 kernel: Modify the signature of k_mem_slab_free()
Modify the signature of the k_mem_slab_free() function with a new one,
replacing the old void **mem with void *mem as a parameter.

The following function:
void k_mem_slab_free(struct k_mem_slab *slab, void **mem);

has the wrong signature. mem is only used as a regular pointer, so there
is no need to use a double-pointer. The correct signature should be:
void k_mem_slab_free(struct k_mem_slab *slab, void *mem);

The issue with the current signature, although functional, is that it is
extremely confusing. I myself, a veteran Zephyr developer, was confused
by this parameter when looking at it recently.

All in-tree uses of the function have been adapted.

Fixes #61888.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-09-03 18:20:59 -04:00
..
apa102.c drivers: led_strip: apa102: add multi instances support 2023-05-31 10:23:22 +01:00
CMakeLists.txt drivers: led_strip: add WS2812 I2S-based driver 2023-02-24 10:12:47 -08:00
Kconfig drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
Kconfig.apa102 kconfig: Global whitespace/consistency cleanup 2019-11-01 15:53:23 +01:00
Kconfig.lpd880x kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
Kconfig.tlc5971 drivers: led_strip: add tlc5971 driver 2022-03-23 12:50:11 +01:00
Kconfig.ws2812 drivers: led_strip: add WS2812 I2S-based driver 2023-02-24 10:12:47 -08:00
lpd880x.c sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
tlc5971.c drivers: tests: replace usage of spi_is_ready with spi_is_ready_dt 2022-12-07 09:40:23 -06:00
ws2812_gpio.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
ws2812_i2s.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
ws2812_spi.c drivers: tests: replace usage of spi_is_ready with spi_is_ready_dt 2022-12-07 09:40:23 -06:00