zephyr/drivers/usb/device
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 ITE: drivers/usb/device: Add USB Device Controller Support 2023-05-26 12:40:18 +02:00
Kconfig drivers for POSIX arch: Add external libc dependencies 2023-07-05 07:01:19 -04:00
usb_dc_dw.c drivers: usb_dc_dw: add support for STM32F4 SoC family 2023-05-10 20:07:04 +09:00
usb_dc_dw_stm32.h drivers: usb_dc_dw: add support for STM32F4 SoC family 2023-05-10 20:07:04 +09:00
usb_dc_it82xx2.c drivers,subsys: fix few missing k_work_delayable_from_work 2023-08-28 10:12:21 +02:00
usb_dc_kinetis.c drivers: usb: device: kinetis: s/device.h/init.h 2023-08-30 10:15:56 +02:00
usb_dc_mcux.c drivers: usb: device: s/device.h/init.h 2023-08-31 10:21:50 +02:00
usb_dc_native_posix.c drivers: usb_dc_native_posix: Check data length before copy 2023-06-09 11:45:16 -04:00
usb_dc_native_posix_adapt.c
usb_dc_native_posix_adapt.h
usb_dc_nrfx.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
usb_dc_rpi_pico.c drivers: usb: device: add missing init.h 2023-08-31 10:21:50 +02:00
usb_dc_sam0.c
usb_dc_sam_usbc.c drivers: usb: fix common misspellings in USB drivers 2023-07-26 10:46:01 +02:00
usb_dc_sam_usbhs.c drivers: usb: fix common misspellings in USB drivers 2023-07-26 10:46:01 +02:00
usb_dc_smartbond.c drivers: usb: device: add missing init.h 2023-08-31 10:21:50 +02:00
usb_dc_stm32.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
usb_dw_registers.h drivers: usb: fix common misspellings in USB drivers 2023-07-26 10:46:01 +02:00