* [02/12] dmaengine: bcm2835: remove dma_slave_config direction usage
@ 2018-09-11 8:35 Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2018-09-11 8:35 UTC (permalink / raw)
To: dmaengine; +Cc: Vinod Koul, Ray Jui, Scott Branden
dma_slave_config direction was marked as deprecated quite some
time back, remove the usage from this driver so that the field
can be removed
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
CC: Ray Jui <rjui@broadcom.com>
CC: Scott Branden <sbranden@broadcom.com>
drivers/dma/bcm2835-dma.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
index 847f84a41a69..cad55ab80d41 100644
--- a/drivers/dma/bcm2835-dma.c
+++ b/drivers/dma/bcm2835-dma.c
@@ -778,14 +778,6 @@ static int bcm2835_dma_slave_config(struct dma_chan *chan,
{
struct bcm2835_chan *c = to_bcm2835_dma_chan(chan);
- if ((cfg->direction == DMA_DEV_TO_MEM &&
- cfg->src_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) ||
- (cfg->direction == DMA_MEM_TO_DEV &&
- cfg->dst_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) ||
- !is_slave_direction(cfg->direction)) {
- return -EINVAL;
- }
-
c->cfg = *cfg;
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread* [02/12] dmaengine: bcm2835: remove dma_slave_config direction usage
@ 2018-09-11 21:11 Scott Branden
0 siblings, 0 replies; 2+ messages in thread
From: Scott Branden @ 2018-09-11 21:11 UTC (permalink / raw)
To: Vinod Koul, dmaengine; +Cc: Ray Jui, Scott Branden
On 18-09-11 01:35 AM, Vinod Koul wrote:
> dma_slave_config direction was marked as deprecated quite some
> time back, remove the usage from this driver so that the field
> can be removed
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Scott Branden <scott.branden@broadcom.com>
> ---
> CC: Ray Jui <rjui@broadcom.com>
> CC: Scott Branden <sbranden@broadcom.com>
>
> drivers/dma/bcm2835-dma.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
> index 847f84a41a69..cad55ab80d41 100644
> --- a/drivers/dma/bcm2835-dma.c
> +++ b/drivers/dma/bcm2835-dma.c
> @@ -778,14 +778,6 @@ static int bcm2835_dma_slave_config(struct dma_chan *chan,
> {
> struct bcm2835_chan *c = to_bcm2835_dma_chan(chan);
>
> - if ((cfg->direction == DMA_DEV_TO_MEM &&
> - cfg->src_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) ||
> - (cfg->direction == DMA_MEM_TO_DEV &&
> - cfg->dst_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) ||
> - !is_slave_direction(cfg->direction)) {
> - return -EINVAL;
> - }
> -
> c->cfg = *cfg;
>
> return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-11 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-11 8:35 [02/12] dmaengine: bcm2835: remove dma_slave_config direction usage Vinod Koul
-- strict thread matches above, loose matches on Subject: below --
2018-09-11 21:11 Scott Branden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox