diff mbox series

[08/12] dmaengine: idma: remove dma_slave_config direction usage

Message ID 20180911083536.16482-9-vkoul@kernel.org (mailing list archive)
State Accepted
Headers show
Series dmaengine: remove usage of dma_slave_config direction | expand

Commit Message

Vinod Koul Sept. 11, 2018, 8:35 a.m. UTC
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(-)

Comments

Andy Shevchenko Sept. 21, 2018, 5:04 p.m. UTC | #1
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
>
diff mbox series

Patch

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);