mirror of https://gitee.com/openkylin/linux.git
spi: atmel: Use dmaengine_prep_slave_sg() API
Use the inline wrapper introduced by commit
16052827d9
("dmaengine/dma_slave: introduce
inline wrappers").
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
7171511eae
commit
ef40eb39e0
|
@ -597,21 +597,15 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_master *master,
|
||||||
goto err_exit;
|
goto err_exit;
|
||||||
|
|
||||||
/* Send both scatterlists */
|
/* Send both scatterlists */
|
||||||
rxdesc = rxchan->device->device_prep_slave_sg(rxchan,
|
rxdesc = dmaengine_prep_slave_sg(rxchan, &as->dma.sgrx, 1,
|
||||||
&as->dma.sgrx,
|
DMA_FROM_DEVICE,
|
||||||
1,
|
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
|
||||||
DMA_FROM_DEVICE,
|
|
||||||
DMA_PREP_INTERRUPT | DMA_CTRL_ACK,
|
|
||||||
NULL);
|
|
||||||
if (!rxdesc)
|
if (!rxdesc)
|
||||||
goto err_dma;
|
goto err_dma;
|
||||||
|
|
||||||
txdesc = txchan->device->device_prep_slave_sg(txchan,
|
txdesc = dmaengine_prep_slave_sg(txchan, &as->dma.sgtx, 1,
|
||||||
&as->dma.sgtx,
|
DMA_TO_DEVICE,
|
||||||
1,
|
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
|
||||||
DMA_TO_DEVICE,
|
|
||||||
DMA_PREP_INTERRUPT | DMA_CTRL_ACK,
|
|
||||||
NULL);
|
|
||||||
if (!txdesc)
|
if (!txdesc)
|
||||||
goto err_dma;
|
goto err_dma;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue