dmaengine: Move icg helpers to global header
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 27 May 2015 14:01:52 +0000 (16:01 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 12 Jun 2015 12:43:13 +0000 (18:13 +0530)
commit87d001ef5366c4a24f7a1340246c4ce68190581c
tree2a4b7fdfc6d18461ab5562ab1f01f4505349e5ae
parent6007ccb57744fdd393385b135e7b7cea9bd4bd6b
dmaengine: Move icg helpers to global header

Now that we can have ICGs set for both the source and destination (using
the icg field of struct data_chunk) or for only the source or the
destination (using the dst_icg or src_icg respectively), and that these
fields can be ignored depending on other parameters (src_inc, src_sgl,
etc.), the logic to get the actual ICG value can be quite tricky.

The XDMAC driver was already implementing it, but since we will need it in
other drivers, we can move it to the main header file.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c
include/linux/dmaengine.h