linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-15 13:51 Yang Yingliang
  2021-06-15 13:51 ` [PATCH -next 2/5] ASoC: img-i2s-out: " Yang Yingliang
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Yang Yingliang @ 2021-06-15 13:51 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

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

diff --git a/sound/soc/img/img-i2s-in.c b/sound/soc/img/img-i2s-in.c
index fd3432a1d6ab..1bf5d6edbd32 100644
--- a/sound/soc/img/img-i2s-in.c
+++ b/sound/soc/img/img-i2s-in.c
@@ -434,8 +434,7 @@ static int img_i2s_in_probe(struct platform_device *pdev)
 
 	i2s->dev = dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.25.1


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

* [PATCH -next 2/5] ASoC: img-i2s-out: Use devm_platform_get_and_ioremap_resource()
  2021-06-15 13:51 [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
@ 2021-06-15 13:51 ` Yang Yingliang
  2021-06-15 13:51 ` [PATCH -next 3/5] ASoC: img-parallel-out: " Yang Yingliang
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Yang Yingliang @ 2021-06-15 13:51 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

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

diff --git a/sound/soc/img/img-i2s-out.c b/sound/soc/img/img-i2s-out.c
index b56a18e7f3ac..4f90d36dc7df 100644
--- a/sound/soc/img/img-i2s-out.c
+++ b/sound/soc/img/img-i2s-out.c
@@ -440,8 +440,7 @@ static int img_i2s_out_probe(struct platform_device *pdev)
 
 	i2s->dev = &pdev->dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.25.1


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

* [PATCH -next 3/5] ASoC: img-parallel-out: Use devm_platform_get_and_ioremap_resource()
  2021-06-15 13:51 [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
  2021-06-15 13:51 ` [PATCH -next 2/5] ASoC: img-i2s-out: " Yang Yingliang
@ 2021-06-15 13:51 ` Yang Yingliang
  2021-06-15 13:51 ` [PATCH -next 4/5] ASoC: img-spdif-in: " Yang Yingliang
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Yang Yingliang @ 2021-06-15 13:51 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

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

diff --git a/sound/soc/img/img-parallel-out.c b/sound/soc/img/img-parallel-out.c
index 4da49a42e854..ce0f08d3777c 100644
--- a/sound/soc/img/img-parallel-out.c
+++ b/sound/soc/img/img-parallel-out.c
@@ -222,8 +222,7 @@ static int img_prl_out_probe(struct platform_device *pdev)
 
 	prl->dev = &pdev->dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.25.1


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

* [PATCH -next 4/5] ASoC: img-spdif-in: Use devm_platform_get_and_ioremap_resource()
  2021-06-15 13:51 [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
  2021-06-15 13:51 ` [PATCH -next 2/5] ASoC: img-i2s-out: " Yang Yingliang
  2021-06-15 13:51 ` [PATCH -next 3/5] ASoC: img-parallel-out: " Yang Yingliang
@ 2021-06-15 13:51 ` Yang Yingliang
  2021-06-15 13:52 ` [PATCH -next 5/5] ASoC: img-spdif-out: " Yang Yingliang
  2021-06-15 17:29 ` [PATCH -next 1/5] ASoC: img-i2s-in: " Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Yang Yingliang @ 2021-06-15 13:51 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

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

diff --git a/sound/soc/img/img-spdif-in.c b/sound/soc/img/img-spdif-in.c
index 46ff8a3621d5..6364eb742f6d 100644
--- a/sound/soc/img/img-spdif-in.c
+++ b/sound/soc/img/img-spdif-in.c
@@ -732,8 +732,7 @@ static int img_spdif_in_probe(struct platform_device *pdev)
 
 	spdif->dev = &pdev->dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.25.1


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

* [PATCH -next 5/5] ASoC: img-spdif-out: Use devm_platform_get_and_ioremap_resource()
  2021-06-15 13:51 [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
                   ` (2 preceding siblings ...)
  2021-06-15 13:51 ` [PATCH -next 4/5] ASoC: img-spdif-in: " Yang Yingliang
@ 2021-06-15 13:52 ` Yang Yingliang
  2021-06-15 17:29 ` [PATCH -next 1/5] ASoC: img-i2s-in: " Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Yang Yingliang @ 2021-06-15 13:52 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

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

diff --git a/sound/soc/img/img-spdif-out.c b/sound/soc/img/img-spdif-out.c
index b1d8e4535726..858e1b853820 100644
--- a/sound/soc/img/img-spdif-out.c
+++ b/sound/soc/img/img-spdif-out.c
@@ -335,8 +335,7 @@ static int img_spdif_out_probe(struct platform_device *pdev)
 
 	spdif->dev = &pdev->dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.25.1


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

* Re: [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource()
  2021-06-15 13:51 [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
                   ` (3 preceding siblings ...)
  2021-06-15 13:52 ` [PATCH -next 5/5] ASoC: img-spdif-out: " Yang Yingliang
@ 2021-06-15 17:29 ` Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2021-06-15 17:29 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel, alsa-devel; +Cc: Mark Brown, lgirdwood

On Tue, 15 Jun 2021 21:51:56 +0800, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.

Applied to

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

Thanks!

[1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource()
      commit: e43805c28df6394254d1f49a388a1c70cae208a1
[2/5] ASoC: img-i2s-out: Use devm_platform_get_and_ioremap_resource()
      commit: ef43f463ddb3dc0acaf1447db22db85df5100380
[3/5] ASoC: img-parallel-out: Use devm_platform_get_and_ioremap_resource()
      commit: a444a902b06a361d646e608136efb35119922445
[4/5] ASoC: img-spdif-in: Use devm_platform_get_and_ioremap_resource()
      commit: c481f3838acc3e1b28fc228f9fbb2f569e3d8d0c
[5/5] ASoC: img-spdif-out: Use devm_platform_get_and_ioremap_resource()
      commit: 942f2671c573904066ddbc699ff8812b3df70a9c

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] 6+ messages in thread

end of thread, other threads:[~2021-06-15 17:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 13:51 [PATCH -next 1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
2021-06-15 13:51 ` [PATCH -next 2/5] ASoC: img-i2s-out: " Yang Yingliang
2021-06-15 13:51 ` [PATCH -next 3/5] ASoC: img-parallel-out: " Yang Yingliang
2021-06-15 13:51 ` [PATCH -next 4/5] ASoC: img-spdif-in: " Yang Yingliang
2021-06-15 13:52 ` [PATCH -next 5/5] ASoC: img-spdif-out: " Yang Yingliang
2021-06-15 17:29 ` [PATCH -next 1/5] ASoC: img-i2s-in: " Mark Brown

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