zephyr/drivers/i2s
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
..
CMakeLists.txt drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
i2s_common.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_handlers.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_litex.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_litex.h include: add missing zephyr/kernel.h 2022-10-20 22:52:09 +09:00
i2s_ll_stm32.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_ll_stm32.h drivers: i2s: add support for i2s domain clock on stm32 devices 2023-03-30 13:47:55 +02:00
i2s_mcux_flexcomm.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_mcux_sai.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_mcux_sai.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
i2s_nrfx.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
i2s_sam_ssc.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
Kconfig drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
Kconfig.litex drivers: i2s: Update drivers to use devicetree Kconfig symbol 2022-08-25 15:03:11 -05:00
Kconfig.mcux drivers: all: mcux: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.mcux_flexcomm drivers: i2s: Update drivers to use devicetree Kconfig symbol 2022-08-25 15:03:11 -05:00
Kconfig.nrfx modules: hal_nordic: nrfx: Handle properly I2S0 instance 2023-05-05 11:47:53 +02:00
Kconfig.sam_ssc drivers: i2s: Update drivers to use devicetree Kconfig symbol 2022-08-25 15:03:11 -05:00
Kconfig.stm32 drivers: i2s: remove now unused kconfig for stm32 i2s 2023-03-30 13:47:55 +02:00