]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dmaengine: add dmaengine_prep_dma_sg() helper
authorVinod Koul <vinod.koul@intel.com>
Sat, 11 Oct 2014 15:46:43 +0000 (21:16 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 15 Oct 2014 16:01:27 +0000 (21:31 +0530)
This was only prep API which didnt have an helper

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/dmaengine.h

index 1f9e642c66adf8a6b0f620582dcb5598fca89f88..7e6b3a281da8ac101b65d24d94492acb456686e4 100644 (file)
@@ -755,6 +755,16 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_interleaved_dma(
        return chan->device->device_prep_interleaved_dma(chan, xt, flags);
 }
 
+static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_sg(
+               struct dma_chan *chan,
+               struct scatterlist *dst_sg, unsigned int dst_nents,
+               struct scatterlist *src_sg, unsigned int src_nents,
+               unsigned long flags)
+{
+       return chan->device->device_prep_dma_sg(chan, dst_sg, dst_nents,
+                       src_sg, src_nents, flags);
+}
+
 static inline int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps)
 {
        if (!chan || !caps)