projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6510223
)
dmaengine: sprd: Remove direction usage from struct dma_slave_config
author
Baolin Wang
<baolin.wang@linaro.org>
Tue, 6 Nov 2018 05:01:31 +0000
(13:01 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 5 Dec 2018 08:57:11 +0000
(14:27 +0530)
The direction field of struct dma_slave_config was marked deprecated,
thus remove the usage.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/sprd-dma.c
b/drivers/dma/sprd-dma.c
index 38d4e4f07c66d4f040632afe608e9457fbbb835c..c226dc93e401b72e75d995b285b3c4da4991127b 100644
(file)
--- a/
drivers/dma/sprd-dma.c
+++ b/
drivers/dma/sprd-dma.c
@@
-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;
}