Skip to content

component: Add common helpers for compare/release

Yong Wu alsa-devel dri-devel linux-amlogic linux-arm-kernel linux-arm-msm linux-fbdev linux-iommu linux-mediatek linux-mips linux-omap linux-pm linux-rockchip linux-samsung-soc linux-sunxi lkml 1 version Applied

Status from this message: Applied to the fbdev for-next branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/23component: Add common helper for compare/release functionsdrivers/base/component.c include/linux/component.h+64 -00 replies
2/23drm/komeda: Make use of the helper component_compare_ofdrivers/gpu/drm/arm/display/komeda/komeda_drv.c+1 -60 replies
3/23drm/armada: Make use of the helper component_compare_of/dev_namedrivers/gpu/drm/armada/armada_drv.c+3 -140 replies
4/23drm/etnaviv: Make use of the helper component_compare_of/dev_namedrivers/gpu/drm/etnaviv/etnaviv_drv.c+2 -140 replies
5/23drm/hirin: Make use of the helper component_compare_ofdrivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c+1 -60 replies
6/23drm/ingenic: Make use of the helper component_compare_ofdrivers/gpu/drm/ingenic/ingenic-drm-drv.c+1 -61 reply
7/23drm/mediatek: Make use of the helper component_compare_ofdrivers/gpu/drm/mediatek/mtk_drm_drv.c+1 -60 replies
8/23drm/meson: Make use of the helper component_compare_ofdrivers/gpu/drm/meson/meson_drv.c+1 -90 replies
9/23drm/msm: Make use of the helper component_compare_ofdrivers/gpu/drm/msm/msm_drv.c+3 -120 replies
10/23drm/sprd: Make use of the helper component_compare_ofdrivers/gpu/drm/sprd/sprd_drm.c+1 -60 replies
11/23drm/sti: Make use of the helper component_compare_ofdrivers/gpu/drm/sti/sti_drv.c+1 -60 replies
12/23drm/sun4i: Make use of the helper component_compare_ofdrivers/gpu/drm/sun4i/sun4i_drv.c+1 -100 replies
13/23drm/rockchip: Make use of the helper component_compare_devdrivers/gpu/drm/rockchip/rockchip_drm_drv.c+1 -61 reply
14/23drm/exynos: Make use of the helper component_compare_devdrivers/gpu/drm/exynos/exynos_drm_drv.c+1 -70 replies
15/23drm/mcde: Make use of the helper component_compare_devdrivers/gpu/drm/mcde/mcde_drv.c+1 -60 replies
16/23drm/omap: dss: Make use of the helper component_compare_devdrivers/gpu/drm/omapdrm/dss/dss.c+1 -70 replies
17/23drm/vc4: Make use of the helper component_compare_devdrivers/gpu/drm/vc4/vc4_drv.c+1 -60 replies
18/23drm: of: Make use of the helper component_release_ofdrivers/gpu/drm/drm_of.c+1 -60 replies
19/23iommu/mediatek: Make use of the helper component_compare/release_ofdrivers/iommu/mtk_iommu.c drivers/iommu/mtk_iommu.h drivers/iommu/mtk_iommu_v1.c+4 -140 replies
20/23ASoC: codecs: wcd938x: Make use of the helper component_compare/release_ofsound/soc/codecs/wcd938x.c+4 -143 replies
21/23power: supply: ab8500: Make use of the helper component_compare_devdrivers/power/supply/ab8500_charger.c+1 -70 replies
22/23video: omapfb: dss: Make use of the helper component_compare_devdrivers/video/fbdev/omap2/omapfb/dss/dss.c+1 -72 replies
23/23ALSA: hda/realtek: Make use of the helper component_compare_dev_namesound/pci/hda/patch_realtek.c+3 -80 replies

Reviews trailers per patch

2 of 23 patches have a Reviewed-by or Acked-by.

PatchHeiko StuebnerPaul Cercueil
1/23
2/23
3/23
4/23
5/23
6/23A-b
7/23
8/23
9/23
10/23
11/23
12/23
13/23A-b
14/23
15/23
16/23
17/23
18/23
19/23
20/23
21/23
22/23
23/23

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/23] component: Add common helpers for compare/release

The component requires the compare/release functions, there are many copies in current kernel. This patchset just defines four common helpers for them. No functional change.

Change note:
v1: a) Split the original patch into many small patches.
b) Use device_match_of_node helper.
c) Move the functions into c and export since the callback doesn't look like it should be "inline".
d) Add "component_" prefix for the functon names.
e) Add a new component_compare_dev_name.

RFC: https://lore.kernel.org/dri-devel/[email protected]/

    rebase on v5.17-rc1

Yong Wu (23):
component: Add common helper for compare/release functions drm/komeda: Make use of the helper component_compare_of drm/armada: Make use of the helper component_compare_of/dev_name drm/etnaviv: Make use of the helper component_compare_of/dev_name drm/hirin: Make use of the helper component_compare_of drm/ingenic: Make use of the helper component_compare_of drm/mediatek: Make use of the helper component_compare_of drm/meson: Make use of the helper component_compare_of drm/msm: Make use of the helper component_compare_of drm/sprd: Make use of the helper component_compare_of drm/sti: Make use of the helper component_compare_of drm/sun4i: Make use of the helper component_compare_of drm/rockchip: Make use of the helper component_compare_dev drm/exynos: Make use of the helper component_compare_dev drm/mcde: Make use of the helper component_compare_dev drm/omap: dss: Make use of the helper component_compare_dev drm/vc4: Make use of the helper component_compare_dev
drm: of: Make use of the helper component_release_of iommu/mediatek: Make use of the helper component_compare/release_of
ASoC: codecs: wcd938x: Make use of the helper
component_compare/release_of
power: supply: ab8500: Make use of the helper component_compare_dev
video: omapfb: dss: Make use of the helper component_compare_dev
ALSA: hda/realtek: Make use of the helper component_compare_dev_name

 drivers/base/component.c                      | 58 +++++++++++++++++++
 .../gpu/drm/arm/display/komeda/komeda_drv.c   |  7 +--
 drivers/gpu/drm/armada/armada_drv.c           | 17 +-----
 drivers/gpu/drm/drm_of.c                      |  7 +--
 drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 16 +----
 drivers/gpu/drm/exynos/exynos_drm_drv.c       |  8 +--
 .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c   |  7 +--
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c     |  7 +--
 drivers/gpu/drm/mcde/mcde_drv.c               |  7 +--
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        |  7 +--
 drivers/gpu/drm/meson/meson_drv.c             | 10 +---
 drivers/gpu/drm/msm/msm_drv.c                 | 15 +----
 drivers/gpu/drm/omapdrm/dss/dss.c             |  8 +--
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |  7 +--
 drivers/gpu/drm/sprd/sprd_drm.c               |  7 +--
 drivers/gpu/drm/sti/sti_drv.c                 |  7 +--
 drivers/gpu/drm/sun4i/sun4i_drv.c             | 11 +---
 drivers/gpu/drm/vc4/vc4_drv.c                 |  7 +--
 drivers/iommu/mtk_iommu.c                     |  4 +-
 drivers/iommu/mtk_iommu.h                     | 10 ----
 drivers/iommu/mtk_iommu_v1.c                  |  4 +-
 drivers/power/supply/ab8500_charger.c         |  8 +--
 drivers/video/fbdev/omap2/omapfb/dss/dss.c    |  8 +--
 include/linux/component.h                     |  6 ++
 sound/pci/hda/patch_realtek.c                 | 11 +---
 sound/soc/codecs/wcd938x.c                    | 18 ++----
 26 files changed, 99 insertions(+), 183 deletions(-)
Signature · 1 line
2.18.0