dmaengine: imx-dma: cleanup scatterlist layering violations
authorLogan Gunthorpe <logang@deltatee.com>
Tue, 30 May 2017 22:39:16 +0000 (16:39 -0600)
committerVinod Koul <vinod.koul@intel.com>
Thu, 1 Jun 2017 16:39:12 +0000 (22:09 +0530)
commitce81801372313805aa649ea18d27b2fb5f6c16b5
tree2893519601d802b59071d3229bbe9685b8c64e80
parentba6ab3b359c86a762f621de8fc6ba5a229aef23f
dmaengine: imx-dma: cleanup scatterlist layering violations

This dma engine driver directly accesses page_link assuming knowledge
that should be contained only in scatterlist.h.

We replace these with calls to sg_chain and sg_assign_page.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Per Förlin <per.forlin@axis.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-dma.c