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 drivers: i2s: Add LiteX I2S controller driver 2020-08-26 08:17:42 -04:00
Kconfig
Kconfig.cavs
Kconfig.litex drivers: i2s: Add LiteX I2S controller driver 2020-08-26 08:17:42 -04:00
Kconfig.sam_ssc drivers: i2s: i2s_sam_ssc: Convert to devicetree 2020-05-07 22:24:58 -05:00
Kconfig.stm32
i2s_cavs.c i2s: cavs: cast device struct to void ptr for DMA user data 2020-09-03 17:33:11 -04:00
i2s_cavs.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
i2s_common.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s_litex.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
i2s_litex.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s_ll_stm32.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
i2s_ll_stm32.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s_sam_ssc.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00