All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: ti: omap-dmic: use devm_platform_ioremap_resource_byname()
@ 2023-03-22  6:10 ` ye.xingchen
  0 siblings, 0 replies; 4+ messages in thread
From: ye.xingchen @ 2023-03-22  6:10 UTC (permalink / raw)
  To: broonie
  Cc: peter.ujfalusi, jarkko.nikula, lgirdwood, perex, tiwai,
	alsa-devel, linux-omap, linux-kernel

From: Ye Xingchen <ye.xingchen@zte.com.cn>

Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource_byname(), as this is exactly what
this function does.

Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
 sound/soc/ti/omap-dmic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/ti/omap-dmic.c b/sound/soc/ti/omap-dmic.c
index 825c70a443da..85de57198c43 100644
--- a/sound/soc/ti/omap-dmic.c
+++ b/sound/soc/ti/omap-dmic.c
@@ -488,8 +488,7 @@ static int asoc_dmic_probe(struct platform_device *pdev)

 	dmic->dma_data.filter_data = "up_link";

-	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
-	dmic->io_base = devm_ioremap_resource(&pdev->dev, res);
+	dmic->io_base = devm_platform_ioremap_resource_byname(pdev, "mpu");
 	if (IS_ERR(dmic->io_base))
 		return PTR_ERR(dmic->io_base);

-- 
2.25.1

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

* [PATCH] ASoC: ti: omap-dmic: use devm_platform_ioremap_resource_byname()
@ 2023-03-22  6:10 ` ye.xingchen
  0 siblings, 0 replies; 4+ messages in thread
From: ye.xingchen @ 2023-03-22  6:10 UTC (permalink / raw)
  To: broonie
  Cc: peter.ujfalusi, jarkko.nikula, lgirdwood, tiwai, alsa-devel,
	linux-omap, linux-kernel

From: Ye Xingchen <ye.xingchen@zte.com.cn>

Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource_byname(), as this is exactly what
this function does.

Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
 sound/soc/ti/omap-dmic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/ti/omap-dmic.c b/sound/soc/ti/omap-dmic.c
index 825c70a443da..85de57198c43 100644
--- a/sound/soc/ti/omap-dmic.c
+++ b/sound/soc/ti/omap-dmic.c
@@ -488,8 +488,7 @@ static int asoc_dmic_probe(struct platform_device *pdev)

 	dmic->dma_data.filter_data = "up_link";

-	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
-	dmic->io_base = devm_ioremap_resource(&pdev->dev, res);
+	dmic->io_base = devm_platform_ioremap_resource_byname(pdev, "mpu");
 	if (IS_ERR(dmic->io_base))
 		return PTR_ERR(dmic->io_base);

-- 
2.25.1

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

* Re: [PATCH] ASoC: ti: omap-dmic: use devm_platform_ioremap_resource_byname()
  2023-03-22  6:10 ` ye.xingchen
@ 2023-04-04 11:46   ` Mark Brown
  -1 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-04-04 11:46 UTC (permalink / raw)
  To: ye.xingchen
  Cc: peter.ujfalusi, jarkko.nikula, lgirdwood, perex, tiwai,
	alsa-devel, linux-omap, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

On Wed, Mar 22, 2023 at 02:10:03PM +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
> 
> Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
> call to devm_platform_ioremap_resource_byname(), as this is exactly what
> this function does.

This doesn't apply against current code, please check and resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] ASoC: ti: omap-dmic: use devm_platform_ioremap_resource_byname()
@ 2023-04-04 11:46   ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2023-04-04 11:46 UTC (permalink / raw)
  To: ye.xingchen
  Cc: peter.ujfalusi, jarkko.nikula, lgirdwood, tiwai, alsa-devel,
	linux-omap, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

On Wed, Mar 22, 2023 at 02:10:03PM +0800, ye.xingchen@zte.com.cn wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
> 
> Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
> call to devm_platform_ioremap_resource_byname(), as this is exactly what
> this function does.

This doesn't apply against current code, please check and resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2023-04-04 11:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22  6:10 [PATCH] ASoC: ti: omap-dmic: use devm_platform_ioremap_resource_byname() ye.xingchen
2023-03-22  6:10 ` ye.xingchen
2023-04-04 11:46 ` Mark Brown
2023-04-04 11: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.