Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] drm: Add component_match_add_of and convert users of drm_of_component_match_add
@ 2023-01-19 19:10 Sean Anderson
  2023-01-19 19:10 ` [PATCH v3 2/3] iommu/sound: Use component_match_add_of helper Sean Anderson
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Anderson @ 2023-01-19 19:10 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, dri-devel
  Cc: alsa-devel, Xinliang Liu, Liviu Dudau, linux-kernel,
	Paul Cercueil, John Stultz, Mihail Atanassov, Will Deacon,
	Samuel Holland, Sean Anderson, Joerg Roedel, Takashi Iwai,
	Russell King, Jernej Skrabec, Chen-Yu Tsai, Mali DP Maintainers,
	linux-arm-kernel, linux-arm-msm, Alain Volmat, Xinwei Kong,
	linux-sunxi, Chun-Kuang Hu, Chen Feng, freedreno, Abhinav Kumar,
	etnaviv, Christian Gmeiner, Mark Brown, linux-mediatek,
	Matthias Brugger, Sean Paul, Yong Wu, linux-mips, Tomi Valkeinen,
	iommu, Robin Murphy, Liam Girdwood, Rob Clark, Philipp Zabel,
	Dmitry Baryshkov, Tian Tao, Jyri Sarha, Brian Starkey,
	Lucas Stach

This series adds a new function component_match_add_of to simplify the
common case of calling component_match_add_release with
component_release_of and component_compare_of. There is already
drm_of_component_match_add, which allows for a custom compare function.
However, all existing users just use component_compare_of (or an
equivalent).

Changes in v3:
- Rebase onto drm/drm-next

Changes in v2:
- Split off conversion from helper addition
- Rebase onto drm/drm-next

Sean Anderson (3):
  component: Add helper for device nodes
  iommu/sound: Use component_match_add_of helper
  drm: Convert users of drm_of_component_match_add to
    component_match_add_of

 .../gpu/drm/arm/display/komeda/komeda_drv.c   |  6 ++--
 drivers/gpu/drm/arm/hdlcd_drv.c               |  9 +-----
 drivers/gpu/drm/arm/malidp_drv.c              | 11 +------
 drivers/gpu/drm/armada/armada_drv.c           | 10 ++++---
 drivers/gpu/drm/drm_of.c                      | 29 +++----------------
 drivers/gpu/drm/etnaviv/etnaviv_drv.c         |  4 +--
 .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c   |  3 +-
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c     |  3 +-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  4 +--
 drivers/gpu/drm/msm/msm_drv.c                 | 14 ++++-----
 drivers/gpu/drm/sti/sti_drv.c                 |  3 +-
 drivers/gpu/drm/sun4i/sun4i_drv.c             |  3 +-
 drivers/gpu/drm/tilcdc/tilcdc_external.c      | 10 ++-----
 drivers/iommu/mtk_iommu_v1.c                  |  3 +-
 include/drm/drm_of.h                          | 12 --------
 include/linux/component.h                     |  9 ++++++
 sound/soc/codecs/wcd938x.c                    |  6 ++--
 17 files changed, 45 insertions(+), 94 deletions(-)

-- 
2.35.1.1320.gc452695387.dirty


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

* [PATCH v3 2/3] iommu/sound: Use component_match_add_of helper
  2023-01-19 19:10 [PATCH v3 0/3] drm: Add component_match_add_of and convert users of drm_of_component_match_add Sean Anderson
@ 2023-01-19 19:10 ` Sean Anderson
  2023-01-20 11:15   ` AngeloGioacchino Del Regno
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Anderson @ 2023-01-19 19:10 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, dri-devel
  Cc: alsa-devel, Sean Anderson, Will Deacon, Joerg Roedel,
	Takashi Iwai, Liam Girdwood, linux-kernel, iommu, Mark Brown,
	linux-mediatek, linux-arm-kernel, Matthias Brugger, Robin Murphy,
	Yong Wu

Convert users of component_match_add_release with component_release_of
and component_compare_of to component_match_add_of.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Mark Brown <broonie@kernel.org>
---

Changes in v3:
- Rebase onto drm/drm-next

Changes in v2:
- Split off from helper addition

 drivers/iommu/mtk_iommu_v1.c | 3 +--
 sound/soc/codecs/wcd938x.c   | 6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index 69682ee068d2..14019ba1e41c 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -670,8 +670,7 @@ static int mtk_iommu_v1_probe(struct platform_device *pdev)
 		}
 		data->larb_imu[i].dev = &plarbdev->dev;
 
-		component_match_add_release(dev, &match, component_release_of,
-					    component_compare_of, larbnode);
+		component_match_add_of(dev, &match, larbnode);
 	}
 
 	platform_set_drvdata(pdev, data);
diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c
index fcac763b04d1..0663b15fa757 100644
--- a/sound/soc/codecs/wcd938x.c
+++ b/sound/soc/codecs/wcd938x.c
@@ -4474,8 +4474,7 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
 	}
 
 	of_node_get(wcd938x->rxnode);
-	component_match_add_release(dev, matchptr, component_release_of,
-				    component_compare_of, wcd938x->rxnode);
+	component_match_add_of(dev, matchptr, wcd938x->rxnode);
 
 	wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0);
 	if (!wcd938x->txnode) {
@@ -4483,8 +4482,7 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x,
 		return -ENODEV;
 	}
 	of_node_get(wcd938x->txnode);
-	component_match_add_release(dev, matchptr, component_release_of,
-				    component_compare_of, wcd938x->txnode);
+	component_match_add_of(dev, matchptr, wcd938x->txnode);
 	return 0;
 }
 
-- 
2.35.1.1320.gc452695387.dirty


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

* Re: [PATCH v3 2/3] iommu/sound: Use component_match_add_of helper
  2023-01-19 19:10 ` [PATCH v3 2/3] iommu/sound: Use component_match_add_of helper Sean Anderson
@ 2023-01-20 11:15   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-01-20 11:15 UTC (permalink / raw)
  To: Sean Anderson, David Airlie, Daniel Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, dri-devel
  Cc: alsa-devel, Will Deacon, Joerg Roedel, Takashi Iwai,
	Liam Girdwood, linux-kernel, iommu, Mark Brown, linux-mediatek,
	linux-arm-kernel, Matthias Brugger, Robin Murphy, Yong Wu

Il 19/01/23 20:10, Sean Anderson ha scritto:
> Convert users of component_match_add_release with component_release_of
> and component_compare_of to component_match_add_of.
> 
> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> Acked-by: Mark Brown <broonie@kernel.org>


Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



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

end of thread, other threads:[~2023-01-23  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 19:10 [PATCH v3 0/3] drm: Add component_match_add_of and convert users of drm_of_component_match_add Sean Anderson
2023-01-19 19:10 ` [PATCH v3 2/3] iommu/sound: Use component_match_add_of helper Sean Anderson
2023-01-20 11:15   ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox