dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [08/12] dmaengine: idma: 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, Andy Shevchenko

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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

 drivers/dma/idma64.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/dma/idma64.c b/drivers/dma/idma64.c
index 1fbf9cb9b742..40dc5d2ddf3d 100644
--- a/drivers/dma/idma64.c
+++ b/drivers/dma/idma64.c
@@ -408,10 +408,6 @@ static int idma64_slave_config(struct dma_chan *chan,
 {
 	struct idma64_chan *idma64c = to_idma64_chan(chan);
 
-	/* Check if chan will be configured for slave transfers */
-	if (!is_slave_direction(config->direction))
-		return -EINVAL;
-
 	memcpy(&idma64c->config, config, sizeof(idma64c->config));
 
 	convert_burst(&idma64c->config.src_maxburst);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [08/12] dmaengine: idma: remove dma_slave_config direction usage
@ 2018-09-21 17:04 Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2018-09-21 17:04 UTC (permalink / raw)
  To: Vinod Koul; +Cc: dmaengine

On Tue, Sep 11, 2018 at 02:05:32PM +0530, 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
> 

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
>  drivers/dma/idma64.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/dma/idma64.c b/drivers/dma/idma64.c
> index 1fbf9cb9b742..40dc5d2ddf3d 100644
> --- a/drivers/dma/idma64.c
> +++ b/drivers/dma/idma64.c
> @@ -408,10 +408,6 @@ static int idma64_slave_config(struct dma_chan *chan,
>  {
>  	struct idma64_chan *idma64c = to_idma64_chan(chan);
>  
> -	/* Check if chan will be configured for slave transfers */
> -	if (!is_slave_direction(config->direction))
> -		return -EINVAL;
> -
>  	memcpy(&idma64c->config, config, sizeof(idma64c->config));
>  
>  	convert_burst(&idma64c->config.src_maxburst);
> -- 
> 2.14.4
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-21 17:04 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 [08/12] dmaengine: idma: remove dma_slave_config direction usage Vinod Koul
  -- strict thread matches above, loose matches on Subject: below --
2018-09-21 17:04 Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).