Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit de6b641e authored by Stefan Agner's avatar Stefan Agner Committed by Vinod Koul
Browse files

dmaengine: ste_dma40: fix implicit conversion



The function d40_prep_sg takes the type enum dma_transfer_direction
as second last parameter. However, the memcpy calls pass DMA_NONE
which is of type enum dma_data_direction. Fix this by passing the
actual transfer direction DMA_MEM_TO_MEM.

This does not change the actual code flow since only the transfer
direction DMA_MEM_TO_DEV and DMA_DEV_TO_MEM are actually used in the
function d40_prep_sg.

Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 8adc53fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment