drivers: imx: edma: Store direction from config into the channel data

This direction is to be used later.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2019-11-13 17:02:56 +02:00 committed by Liam Girdwood
parent fa6206d47c
commit ea6060c9ca
1 changed files with 1 additions and 0 deletions

View File

@ -345,6 +345,7 @@ static int edma_set_config(struct dma_chan_data *channel,
trace_edma("EDMA: set config");
channel->is_scheduling_source = config->is_scheduling_source;
channel->direction = config->direction;
switch (config->direction) {
case DMA_DIR_MEM_TO_DEV: