zephyr/drivers/i2s
Daniel Leung d1f57be7be i2s: cavs: cast device struct to void ptr for DMA user data
In the I2S CAVS driver, the DMA user data simply points to
the device struct. However, after the change to const-ify device
struct, this causes warnings from compiler because the user_data
assignment would discard the const qualifier. The user_data is
being used to point back to the device struct, and the DMA
callbacks are already casting the user data argument into
a const device struct. So it's a simple fix by casting
the device pointer to void pointer at device creation.

Fixes #28016

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2020-09-03 17:33:11 -04:00
..
CMakeLists.txt
i2s_cavs.c
i2s_cavs.h
i2s_common.c
i2s_handlers.c
i2s_litex.c
i2s_litex.h
i2s_ll_stm32.c
i2s_ll_stm32.h
i2s_sam_ssc.c
Kconfig
Kconfig.cavs
Kconfig.litex
Kconfig.sam_ssc
Kconfig.stm32