Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: atmel: Use dmaengine_prep_slave_sg() API

Use the inline wrapper introduced by commit
16052827d98fbc13c31ebad560af4bd53e2b4dd5 ("dmaengine/dma_slave: introduce
inline wrappers").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Geert Uytterhoeven and committed by
Mark Brown
ef40eb39 7171511e

+6 -12
+6 -12
drivers/spi/spi-atmel.c
··· 597 597 goto err_exit; 598 598 599 599 /* Send both scatterlists */ 600 - rxdesc = rxchan->device->device_prep_slave_sg(rxchan, 601 - &as->dma.sgrx, 602 - 1, 603 - DMA_FROM_DEVICE, 604 - DMA_PREP_INTERRUPT | DMA_CTRL_ACK, 605 - NULL); 600 + rxdesc = dmaengine_prep_slave_sg(rxchan, &as->dma.sgrx, 1, 601 + DMA_FROM_DEVICE, 602 + DMA_PREP_INTERRUPT | DMA_CTRL_ACK); 606 603 if (!rxdesc) 607 604 goto err_dma; 608 605 609 - txdesc = txchan->device->device_prep_slave_sg(txchan, 610 - &as->dma.sgtx, 611 - 1, 612 - DMA_TO_DEVICE, 613 - DMA_PREP_INTERRUPT | DMA_CTRL_ACK, 614 - NULL); 606 + txdesc = dmaengine_prep_slave_sg(txchan, &as->dma.sgtx, 1, 607 + DMA_TO_DEVICE, 608 + DMA_PREP_INTERRUPT | DMA_CTRL_ACK); 615 609 if (!txdesc) 616 610 goto err_dma; 617 611