dmaengine: bcm2835: move controlblock chain generation into separate method
authorMartin Sperl <kernel@martin.sperl.org>
Wed, 16 Mar 2016 19:24:59 +0000 (12:24 -0700)
committerVinod Koul <vinod.koul@intel.com>
Fri, 15 Apr 2016 04:27:21 +0000 (09:57 +0530)
commit92153bb534fa4c2f0a1fdc3745cab25edaf10dca
tree18432d59f7f1119800a129ef06870abd1575c204
parenta4dcdd849ef8dbd0811ca8436aecf1c87e09686c
dmaengine: bcm2835: move controlblock chain generation into separate method

In preparation of adding slave_sg functionality this patch moves the
generation/allocation of bcm2835_desc and the building of
the corresponding DMA-control-block chain from bcm2835_dma_prep_dma_cyclic
into the newly created method bcm2835_dma_create_cb_chain.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm2835-dma.c