Skip to contentSkip to conversation

dmaengine: at_hdmac: remove dma_slave_config direction usage

PATCH Superseded Vinod Koul 1 participant 1 message Sep 11, 2018

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/12 dmaengine: at_hdmac: remove dma_slave_config direction usage

dma_slave_config direction was marked as deprecated quite some time back, remove the usage from this driver so that the field can be removed

---
CC: Ludovic Desroches <[email protected]>

 drivers/dma/at_hdmac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/at_hdmac.c +1 -1
index 75f38d19fcbe..7cbac6e8c113 100644
@@ -1320,7 +1320,7 @@ atc_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
 	if (unlikely(!is_slave_direction(direction)))
 		goto err_out;
 
-	if (sconfig->direction == DMA_MEM_TO_DEV)
+	if (direction == DMA_MEM_TO_DEV)
 		reg_width = convert_buswidth(sconfig->dst_addr_width);
 	else
 		reg_width = convert_buswidth(sconfig->src_addr_width);