Commit 1d0c81e8 authored by Vinod Koul's avatar Vinod Koul

carma: move to dma_transfer_direction

fixup usage of dma direction by introducing dma_transfer_direction,
this patch moves carma drivers to use new enum
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
CC Ira W. Snyder <iws@ovro.caltech.edu>
parent 1003cab8
...@@ -513,7 +513,7 @@ static noinline int fpga_program_dma(struct fpga_dev *priv) ...@@ -513,7 +513,7 @@ static noinline int fpga_program_dma(struct fpga_dev *priv)
* transaction, and then put it under external control * transaction, and then put it under external control
*/ */
memset(&config, 0, sizeof(config)); memset(&config, 0, sizeof(config));
config.direction = DMA_TO_DEVICE; config.direction = DMA_MEM_TO_DEV;
config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; config.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
config.dst_maxburst = fpga_fifo_size(priv->regs) / 2 / 4; config.dst_maxburst = fpga_fifo_size(priv->regs) / 2 / 4;
ret = chan->device->device_control(chan, DMA_SLAVE_CONFIG, ret = chan->device->device_control(chan, DMA_SLAVE_CONFIG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment