drivers: dma: Apply DMA callback change to relevant drivers
Now the dma device instance is passed as parameter to the callback. Fixes #26923 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
020dab824c
commit
6acee3dcba
19 changed files with 81 additions and 58 deletions
|
@ -492,7 +492,8 @@ static void rx_stream_disable(struct stream *stream, struct device *dev);
|
|||
static void tx_stream_disable(struct stream *stream, struct device *dev);
|
||||
|
||||
/* This function is executed in the interrupt context */
|
||||
static void dma_rx_callback(void *arg, uint32_t channel, int status)
|
||||
static void dma_rx_callback(struct device *dma_dev, void *arg,
|
||||
uint32_t channel, int status)
|
||||
{
|
||||
struct device *dev = get_dev_from_rx_dma_channel(channel);
|
||||
const struct i2s_stm32_cfg *cfg = DEV_CFG(dev);
|
||||
|
@ -558,7 +559,8 @@ rx_disable:
|
|||
rx_stream_disable(stream, dev);
|
||||
}
|
||||
|
||||
static void dma_tx_callback(void *arg, uint32_t channel, int status)
|
||||
static void dma_tx_callback(struct device *dma_dev, void *arg,
|
||||
uint32_t channel, int status)
|
||||
{
|
||||
struct device *dev = get_dev_from_tx_dma_channel(channel);
|
||||
const struct i2s_stm32_cfg *cfg = DEV_CFG(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue