Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/5] Simplify code with _scoped() helper functions
@ 2024-08-28  7:38 Zhang Zekun
  2024-08-28  7:38 ` [PATCH 1/5] PCI: kirin: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Zhang Zekun @ 2024-08-28  7:38 UTC (permalink / raw)
  To: songxiaowei, wangbinghui, lpieralisi, kw, manivannan.sadhasivam,
	robh, bhelgaas, linux-pci, ryder.lee, jianjun.wang,
	sergio.paracuellos, angelogioacchino.delregno, matthias.bgg,
	alyssa, maz, thierry.reding
  Cc: zhangzekun11

Use _scoped() functions to iterate through the child node, and we don't
need to call of_node_put() manually. This can simplify the code a bit.

Zhang Zekun (5):
  PCI: kirin: Use helper function
    for_each_available_child_of_node_scoped()
  PCI: mediatek: Use helper function
    for_each_available_child_of_node_scoped()
  PCI: mt7621: Use helper function
    for_each_available_child_of_node_scoped()
  PCI: apple: Use helper function for_each_child_of_node_scoped()
  PCI: tegra: Use helper function for_each_child_of_node_scoped()

 drivers/pci/controller/dwc/pcie-kirin.c | 10 ++----
 drivers/pci/controller/pci-tegra.c      | 41 +++++++++----------------
 drivers/pci/controller/pcie-apple.c     |  4 +--
 drivers/pci/controller/pcie-mediatek.c  | 11 +++----
 drivers/pci/controller/pcie-mt7621.c    |  9 ++----
 5 files changed, 25 insertions(+), 50 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2024-08-29  1:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28  7:38 [PATCH 0/5] Simplify code with _scoped() helper functions Zhang Zekun
2024-08-28  7:38 ` [PATCH 1/5] PCI: kirin: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
2024-08-28 12:11   ` Jonathan Cameron
2024-08-29  1:20     ` zhangzekun (A)
2024-08-28  7:38 ` [PATCH 2/5] PCI: mediatek: " Zhang Zekun
2024-08-28 12:16   ` Jonathan Cameron
2024-08-28  7:38 ` [PATCH 3/5] PCI: mt7621: " Zhang Zekun
2024-08-28  9:18   ` Sergio Paracuellos
2024-08-28 12:17   ` Jonathan Cameron
2024-08-28  7:38 ` [PATCH 4/5] PCI: apple: Use helper function for_each_child_of_node_scoped() Zhang Zekun
2024-08-28 12:19   ` Jonathan Cameron
2024-08-28  7:38 ` [PATCH 5/5] PCI: tegra: " Zhang Zekun
2024-08-28 12:21   ` Jonathan Cameron

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