All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/4] ASoC: samsung: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-16  9:16 ` Yang Yingliang
  0 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: krzysztof.kozlowski, s.nawrocki, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Yang Yingliang (4):
  ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
  ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
  ASoC: samsung: s3c2412-i2s: Use
    devm_platform_get_and_ioremap_resource()
  ASoC: samsung: s3c24xx-i2s: Use
    devm_platform_get_and_ioremap_resource()

 sound/soc/samsung/i2s.c         | 3 +--
 sound/soc/samsung/pcm.c         | 3 +--
 sound/soc/samsung/s3c2412-i2s.c | 3 +--
 sound/soc/samsung/s3c24xx-i2s.c | 3 +--
 4 files changed, 4 insertions(+), 8 deletions(-)

-- 
2.25.1


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

* [PATCH -next 0/4] ASoC: samsung: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-16  9:16 ` Yang Yingliang
  0 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: broonie, krzysztof.kozlowski

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Yang Yingliang (4):
  ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
  ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
  ASoC: samsung: s3c2412-i2s: Use
    devm_platform_get_and_ioremap_resource()
  ASoC: samsung: s3c24xx-i2s: Use
    devm_platform_get_and_ioremap_resource()

 sound/soc/samsung/i2s.c         | 3 +--
 sound/soc/samsung/pcm.c         | 3 +--
 sound/soc/samsung/s3c2412-i2s.c | 3 +--
 sound/soc/samsung/s3c24xx-i2s.c | 3 +--
 4 files changed, 4 insertions(+), 8 deletions(-)

-- 
2.25.1


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

* [PATCH -next 1/4] ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16 ` Yang Yingliang
@ 2021-06-16  9:16   ` Yang Yingliang
  -1 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: krzysztof.kozlowski, s.nawrocki, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index c632842d42eb..309badc97290 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1441,8 +1441,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
 		}
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->addr = devm_ioremap_resource(&pdev->dev, res);
+	priv->addr = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(priv->addr))
 		return PTR_ERR(priv->addr);
 
-- 
2.25.1


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

* [PATCH -next 1/4] ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-16  9:16   ` Yang Yingliang
  0 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: broonie, krzysztof.kozlowski

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index c632842d42eb..309badc97290 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1441,8 +1441,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
 		}
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->addr = devm_ioremap_resource(&pdev->dev, res);
+	priv->addr = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(priv->addr))
 		return PTR_ERR(priv->addr);
 
-- 
2.25.1


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

* [PATCH -next 2/4] ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16 ` Yang Yingliang
@ 2021-06-16  9:16   ` Yang Yingliang
  -1 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: krzysztof.kozlowski, s.nawrocki, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/pcm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
index bfd76e9cc0ca..4c4dfde0568f 100644
--- a/sound/soc/samsung/pcm.c
+++ b/sound/soc/samsung/pcm.c
@@ -512,8 +512,7 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev)
 	/* Default is 128fs */
 	pcm->sclk_per_fs = 128;
 
-	mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	pcm->regs = devm_ioremap_resource(&pdev->dev, mem_res);
+	pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res);
 	if (IS_ERR(pcm->regs))
 		return PTR_ERR(pcm->regs);
 
-- 
2.25.1


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

* [PATCH -next 2/4] ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-16  9:16   ` Yang Yingliang
  0 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: broonie, krzysztof.kozlowski

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/pcm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
index bfd76e9cc0ca..4c4dfde0568f 100644
--- a/sound/soc/samsung/pcm.c
+++ b/sound/soc/samsung/pcm.c
@@ -512,8 +512,7 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev)
 	/* Default is 128fs */
 	pcm->sclk_per_fs = 128;
 
-	mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	pcm->regs = devm_ioremap_resource(&pdev->dev, mem_res);
+	pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res);
 	if (IS_ERR(pcm->regs))
 		return PTR_ERR(pcm->regs);
 
-- 
2.25.1


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

* [PATCH -next 3/4] ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16 ` Yang Yingliang
@ 2021-06-16  9:16   ` Yang Yingliang
  -1 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: krzysztof.kozlowski, s.nawrocki, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/s3c2412-i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c
index 81f416ac457e..ec1c6f9d76ac 100644
--- a/sound/soc/samsung/s3c2412-i2s.c
+++ b/sound/soc/samsung/s3c2412-i2s.c
@@ -208,8 +208,7 @@ static int s3c2412_iis_dev_probe(struct platform_device *pdev)
 		return -ENXIO;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
+	s3c2412_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(s3c2412_i2s.regs))
 		return PTR_ERR(s3c2412_i2s.regs);
 
-- 
2.25.1


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

* [PATCH -next 3/4] ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-16  9:16   ` Yang Yingliang
  0 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: broonie, krzysztof.kozlowski

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/s3c2412-i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c
index 81f416ac457e..ec1c6f9d76ac 100644
--- a/sound/soc/samsung/s3c2412-i2s.c
+++ b/sound/soc/samsung/s3c2412-i2s.c
@@ -208,8 +208,7 @@ static int s3c2412_iis_dev_probe(struct platform_device *pdev)
 		return -ENXIO;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
+	s3c2412_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(s3c2412_i2s.regs))
 		return PTR_ERR(s3c2412_i2s.regs);
 
-- 
2.25.1


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

* [PATCH -next 4/4] ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16 ` Yang Yingliang
@ 2021-06-16  9:16   ` Yang Yingliang
  -1 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: krzysztof.kozlowski, s.nawrocki, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/s3c24xx-i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c
index 50c08008aacb..0f46304eaa4f 100644
--- a/sound/soc/samsung/s3c24xx-i2s.c
+++ b/sound/soc/samsung/s3c24xx-i2s.c
@@ -425,8 +425,7 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
 	struct resource *res;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	s3c24xx_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
+	s3c24xx_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(s3c24xx_i2s.regs))
 		return PTR_ERR(s3c24xx_i2s.regs);
 
-- 
2.25.1


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

* [PATCH -next 4/4] ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-16  9:16   ` Yang Yingliang
  0 siblings, 0 replies; 20+ messages in thread
From: Yang Yingliang @ 2021-06-16  9:16 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: broonie, krzysztof.kozlowski

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/samsung/s3c24xx-i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c
index 50c08008aacb..0f46304eaa4f 100644
--- a/sound/soc/samsung/s3c24xx-i2s.c
+++ b/sound/soc/samsung/s3c24xx-i2s.c
@@ -425,8 +425,7 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
 	struct resource *res;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	s3c24xx_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
+	s3c24xx_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(s3c24xx_i2s.regs))
 		return PTR_ERR(s3c24xx_i2s.regs);
 
-- 
2.25.1


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

* Re: [PATCH -next 4/4] ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16   ` Yang Yingliang
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: s.nawrocki, broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/s3c24xx-i2s.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>


Best regards,
Krzysztof

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

* Re: [PATCH -next 4/4] ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/s3c24xx-i2s.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>


Best regards,
Krzysztof

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

* Re: [PATCH -next 3/4] ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16   ` Yang Yingliang
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: s.nawrocki, broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/s3c2412-i2s.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c
> index 81f416ac457e..ec1c6f9d76ac 100644
> --- a/sound/soc/samsung/s3c2412-i2s.c
> +++ b/sound/soc/samsung/s3c2412-i2s.c
> @@ -208,8 +208,7 @@ static int s3c2412_iis_dev_probe(struct platform_device *pdev)
>  		return -ENXIO;
>  	}
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
> +	s3c2412_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
>  	if (IS_ERR(s3c2412_i2s.regs))
>  		return PTR_ERR(s3c2412_i2s.regs);
>  
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Best regards,
Krzysztof

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

* Re: [PATCH -next 3/4] ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/s3c2412-i2s.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c
> index 81f416ac457e..ec1c6f9d76ac 100644
> --- a/sound/soc/samsung/s3c2412-i2s.c
> +++ b/sound/soc/samsung/s3c2412-i2s.c
> @@ -208,8 +208,7 @@ static int s3c2412_iis_dev_probe(struct platform_device *pdev)
>  		return -ENXIO;
>  	}
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res);
> +	s3c2412_i2s.regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
>  	if (IS_ERR(s3c2412_i2s.regs))
>  		return PTR_ERR(s3c2412_i2s.regs);
>  
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Best regards,
Krzysztof

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

* Re: [PATCH -next 1/4] ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16   ` Yang Yingliang
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: s.nawrocki, broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/i2s.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
> index c632842d42eb..309badc97290 100644
> --- a/sound/soc/samsung/i2s.c
> +++ b/sound/soc/samsung/i2s.c
> @@ -1441,8 +1441,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
>  		}
>  	}
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	priv->addr = devm_ioremap_resource(&pdev->dev, res);
> +	priv->addr = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
>  	if (IS_ERR(priv->addr))
>  		return PTR_ERR(priv->addr);
>  
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Best regards,
Krzysztof

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

* Re: [PATCH -next 1/4] ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/i2s.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
> index c632842d42eb..309badc97290 100644
> --- a/sound/soc/samsung/i2s.c
> +++ b/sound/soc/samsung/i2s.c
> @@ -1441,8 +1441,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
>  		}
>  	}
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	priv->addr = devm_ioremap_resource(&pdev->dev, res);
> +	priv->addr = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
>  	if (IS_ERR(priv->addr))
>  		return PTR_ERR(priv->addr);
>  
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Best regards,
Krzysztof

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

* Re: [PATCH -next 2/4] ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16   ` Yang Yingliang
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: s.nawrocki, broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/pcm.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
> index bfd76e9cc0ca..4c4dfde0568f 100644
> --- a/sound/soc/samsung/pcm.c
> +++ b/sound/soc/samsung/pcm.c
> @@ -512,8 +512,7 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev)
>  	/* Default is 128fs */
>  	pcm->sclk_per_fs = 128;
>  
> -	mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	pcm->regs = devm_ioremap_resource(&pdev->dev, mem_res);
> +	pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res);
>  	if (IS_ERR(pcm->regs))
>  		return PTR_ERR(pcm->regs);
>  
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Best regards,
Krzysztof

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

* Re: [PATCH -next 2/4] ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-21  9:22     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-21  9:22 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: broonie

On 16/06/2021 11:16, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  sound/soc/samsung/pcm.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
> index bfd76e9cc0ca..4c4dfde0568f 100644
> --- a/sound/soc/samsung/pcm.c
> +++ b/sound/soc/samsung/pcm.c
> @@ -512,8 +512,7 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev)
>  	/* Default is 128fs */
>  	pcm->sclk_per_fs = 128;
>  
> -	mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	pcm->regs = devm_ioremap_resource(&pdev->dev, mem_res);
> +	pcm->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res);
>  	if (IS_ERR(pcm->regs))
>  		return PTR_ERR(pcm->regs);
>  
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Best regards,
Krzysztof

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

* Re: [PATCH -next 0/4] ASoC: samsung: Use devm_platform_get_and_ioremap_resource()
  2021-06-16  9:16 ` Yang Yingliang
@ 2021-06-21 18:46   ` Mark Brown
  -1 siblings, 0 replies; 20+ messages in thread
From: Mark Brown @ 2021-06-21 18:46 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel
  Cc: Mark Brown, krzysztof.kozlowski, s.nawrocki

On Wed, 16 Jun 2021 17:16:48 +0800, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Yang Yingliang (4):
>   ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
>   ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
>   ASoC: samsung: s3c2412-i2s: Use
>     devm_platform_get_and_ioremap_resource()
>   ASoC: samsung: s3c24xx-i2s: Use
>     devm_platform_get_and_ioremap_resource()
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/4] ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
      commit: 5eb8262c686509ffb60a5b04ca6ee562f02cbaf5
[2/4] ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
      commit: c3255553d6b6cd5c8de42d2faa80e1d33401cb3b
[3/4] ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource()
      commit: 87a32d00249e6e3c6b1ac020d36136b2cd75fcc8
[4/4] ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource()
      commit: b73cbd7b1c2d477d143c544bdc2b3415bae58a14

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

* Re: [PATCH -next 0/4] ASoC: samsung: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-21 18:46   ` Mark Brown
  0 siblings, 0 replies; 20+ messages in thread
From: Mark Brown @ 2021-06-21 18:46 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: Mark Brown, krzysztof.kozlowski

On Wed, 16 Jun 2021 17:16:48 +0800, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Yang Yingliang (4):
>   ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
>   ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
>   ASoC: samsung: s3c2412-i2s: Use
>     devm_platform_get_and_ioremap_resource()
>   ASoC: samsung: s3c24xx-i2s: Use
>     devm_platform_get_and_ioremap_resource()
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/4] ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
      commit: 5eb8262c686509ffb60a5b04ca6ee562f02cbaf5
[2/4] ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
      commit: c3255553d6b6cd5c8de42d2faa80e1d33401cb3b
[3/4] ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource()
      commit: 87a32d00249e6e3c6b1ac020d36136b2cd75fcc8
[4/4] ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource()
      commit: b73cbd7b1c2d477d143c544bdc2b3415bae58a14

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

end of thread, other threads:[~2021-06-21 18:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16  9:16 [PATCH -next 0/4] ASoC: samsung: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
2021-06-16  9:16 ` Yang Yingliang
2021-06-16  9:16 ` [PATCH -next 1/4] ASoC: samsung: i2s: " Yang Yingliang
2021-06-16  9:16   ` Yang Yingliang
2021-06-21  9:22   ` Krzysztof Kozlowski
2021-06-21  9:22     ` Krzysztof Kozlowski
2021-06-16  9:16 ` [PATCH -next 2/4] ASoC: samsung: pcm: " Yang Yingliang
2021-06-16  9:16   ` Yang Yingliang
2021-06-21  9:22   ` Krzysztof Kozlowski
2021-06-21  9:22     ` Krzysztof Kozlowski
2021-06-16  9:16 ` [PATCH -next 3/4] ASoC: samsung: s3c2412-i2s: " Yang Yingliang
2021-06-16  9:16   ` Yang Yingliang
2021-06-21  9:22   ` Krzysztof Kozlowski
2021-06-21  9:22     ` Krzysztof Kozlowski
2021-06-16  9:16 ` [PATCH -next 4/4] ASoC: samsung: s3c24xx-i2s: " Yang Yingliang
2021-06-16  9:16   ` Yang Yingliang
2021-06-21  9:22   ` Krzysztof Kozlowski
2021-06-21  9:22     ` Krzysztof Kozlowski
2021-06-21 18:46 ` [PATCH -next 0/4] ASoC: samsung: " Mark Brown
2021-06-21 18:46   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.