Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01c935c4 authored by Lee Jones's avatar Lee Jones Committed by Linus Walleij
Browse files

dmaengine: ste_dma40: Remove redundant address fetching function



Addresses are now stored in local data structures and are easy to
obtain, thus a specialist function used to fetch them is now surplus
to requirement.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ef9c89b3
Loading
Loading
Loading
Loading
+0 −18
Original line number Original line Diff line number Diff line
@@ -2267,24 +2267,6 @@ d40_prep_desc(struct d40_chan *chan, struct scatterlist *sg,
	return NULL;
	return NULL;
}
}


static dma_addr_t
d40_get_dev_addr(struct d40_chan *chan, enum dma_transfer_direction direction)
{
	struct stedma40_platform_data *plat = chan->base->plat_data;
	struct stedma40_chan_cfg *cfg = &chan->dma_cfg;
	dma_addr_t addr = 0;

	if (chan->runtime_addr)
		return chan->runtime_addr;

	if (direction == DMA_DEV_TO_MEM)
		addr = plat->dev_rx[cfg->dev_type];
	else if (direction == DMA_MEM_TO_DEV)
		addr = plat->dev_tx[cfg->dev_type];

	return addr;
}

static struct dma_async_tx_descriptor *
static struct dma_async_tx_descriptor *
d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src,
d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src,
	    struct scatterlist *sg_dst, unsigned int sg_len,
	    struct scatterlist *sg_dst, unsigned int sg_len,