On Sat, Feb 1, 2025 at 3:31 AM Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote: > > There are lot of drivers using of_get_child_by_name() followed by > of_device_is_available() to find the available child node by name for a > given parent. Provide a helper for these users to simplify the code. > > Suggested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx> Reviewed-by: Rob Herring <robh@xxxxxxxxxx> > --- > v1->v2: > * Updated commit description. > * Updated kerneldoc comment block > * Avoided code duplication by using of_get_child_by_name(). > > Note: > grep showed the below files will be the users for this new API. > I will be updating these drivers once this patch is in mainline. No need to wait. Please convert all the net ones and send this patch with them. > > drivers/net/dsa/rzn1_a5psw.c > drivers/net/can/rcar/rcar_canfd.c > > drivers/net/ethernet/mediatek/mtk_star_emac.c > drivers/net/dsa/mt7530.c > drivers/net/dsa/sja1105/sja1105_mdio.c > drivers/net/dsa/qca/qca8k-8xxx.c > drivers/net/wireless/mediatek/mt76/mac80211.c > drivers/net/ethernet/ibm/emac/core.c > drivers/net/ethernet/ti/am65-cpsw-nuss.c > drivers/net/ethernet/actions/owl-emac.c > drivers/net/ethernet/mediatek/mtk_eth_soc.c > drivers/media/platform/samsung/exynos4-is/media-dev.h > drivers/gpu/drm/tegra/rgb.c > drivers/gpu/drm/msm/adreno/adreno_gpu.c > drivers/clk/davinci/pll.c