Commit a0ecabf5 authored by Baolin Wang's avatar Baolin Wang Committed by Vinod Koul
Browse files

dmaengine: sprd: Remove direction usage from struct dma_slave_config



The direction field of struct dma_slave_config was marked deprecated,
thus remove the usage.

Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 65102238
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -847,9 +847,6 @@ static int sprd_dma_slave_config(struct dma_chan *chan,
	struct sprd_dma_chn *schan = to_sprd_dma_chan(chan);
	struct dma_slave_config *slave_cfg = &schan->slave_cfg;

	if (!is_slave_direction(config->direction))
		return -EINVAL;

	memcpy(slave_cfg, config, sizeof(*config));
	return 0;
}