dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [07/12] dmaengine: hsu: 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/hsu/hsu.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/dma/hsu/hsu.c b/drivers/dma/hsu/hsu.c
index 202ffa9f7611..e06f20272fd7 100644
--- a/drivers/dma/hsu/hsu.c
+++ b/drivers/dma/hsu/hsu.c
@@ -348,10 +348,6 @@ static int hsu_dma_slave_config(struct dma_chan *chan,
 {
 	struct hsu_dma_chan *hsuc = to_hsu_dma_chan(chan);
 
-	/* Check if chan will be configured for slave transfers */
-	if (!is_slave_direction(config->direction))
-		return -EINVAL;
-
 	memcpy(&hsuc->config, config, sizeof(hsuc->config));
 
 	return 0;

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

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

On Tue, Sep 11, 2018 at 02:05:31PM +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/hsu/hsu.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/dma/hsu/hsu.c b/drivers/dma/hsu/hsu.c
> index 202ffa9f7611..e06f20272fd7 100644
> --- a/drivers/dma/hsu/hsu.c
> +++ b/drivers/dma/hsu/hsu.c
> @@ -348,10 +348,6 @@ static int hsu_dma_slave_config(struct dma_chan *chan,
>  {
>  	struct hsu_dma_chan *hsuc = to_hsu_dma_chan(chan);
>  
> -	/* Check if chan will be configured for slave transfers */
> -	if (!is_slave_direction(config->direction))
> -		return -EINVAL;
> -
>  	memcpy(&hsuc->config, config, sizeof(hsuc->config));
>  
>  	return 0;
> -- 
> 2.14.4
>

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

end of thread, other threads:[~2018-09-21 17:03 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 [07/12] dmaengine: hsu: remove dma_slave_config direction usage Vinod Koul
  -- strict thread matches above, loose matches on Subject: below --
2018-09-21 17:03 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).