zephyr/drivers/audio
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: dmic: remove old intel dmic driver 2022-07-25 13:14:49 -04:00
Kconfig drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
Kconfig.dmic_pdm_nrfx drivers: audio: Update Kconfig 2022-08-14 09:05:09 -05:00
Kconfig.mpxxdtyy drivers: audio: Update Kconfig 2022-08-14 09:05:09 -05:00
Kconfig.tlv320dac drivers: audio: Update Kconfig 2022-08-14 09:05:09 -05:00
dmic_nrfx_pdm.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
mpxxdtyy-i2s.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
mpxxdtyy.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
mpxxdtyy.h includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
tlv320dac310x.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
tlv320dac310x.h