On Fri, 2022-01-28 at 23:24 +0100, Daniel Vetter wrote: > On Fri, Jan 28, 2022 at 04:11:01PM +0800, Yong Wu wrote: > > The component requires the compare/release functions, there are so > > many > > copy in current kernel. Just define three common helpers for them. > > No functional change. > > > > Signed-off-by: Yong Wu <yong.wu@xxxxxxxxxxxx> > > --- > > Base on v5.17-rc1 > > --- > > .../gpu/drm/arm/display/komeda/komeda_drv.c | 5 ----- > > drivers/gpu/drm/arm/hdlcd_drv.c | 7 +------ > > drivers/gpu/drm/armada/armada_drv.c | 5 ----- > > drivers/gpu/drm/drm_of.c | 8 +------- > > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 7 ------- > > drivers/gpu/drm/exynos/exynos_drm_drv.c | 5 ----- > > .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 5 ----- > > drivers/gpu/drm/imx/imx-drm-core.c | 4 ++-- > > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 5 ----- > > drivers/gpu/drm/mcde/mcde_drv.c | 7 +------ > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 ----- > > drivers/gpu/drm/meson/meson_drv.c | 8 -------- > > drivers/gpu/drm/msm/msm_drv.c | 9 --------- > > drivers/gpu/drm/omapdrm/dss/dss.c | 8 +------- > > drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 5 ----- > > drivers/gpu/drm/sti/sti_drv.c | 5 ----- > > drivers/gpu/drm/sun4i/sun4i_drv.c | 9 --------- > > drivers/gpu/drm/vc4/vc4_drv.c | 5 ----- > > drivers/iommu/mtk_iommu.h | 10 ---------- > > drivers/power/supply/ab8500_charger.c | 8 +------- > > drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +------- > > include/linux/component.h | 18 > > ++++++++++++++++++ > > sound/soc/codecs/wcd938x.c | 16 ++---------- > > ---- > > Seems like a neat idea. Please add kerneldoc for the new functions > you're > adding (bonus point for an example in there) and make sure it all > renders > correctly in OK, I will add it. > > $ make htmldoc sorry, I still need some time to run this in my environment. > > Also please split up the patch series per-driver and add the > maintainers > to each patches' Cc: list. With that I think this should be ready for > merging. In the orignal idea, I thought the name compare_of/release_of was enough, thus I squashed them into one patch, otherwise, it may cause build fail due to redefinition when bisecting.