public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Simplify code with _scoped() helper functions
@ 2024-08-30  3:58 Zhang Zekun
  2024-08-30  3:58 ` [PATCH v2 1/6] PCI: kirin: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Zhang Zekun @ 2024-08-30  3:58 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, Jonathan.Cameron
  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.

v2:
- Use dev_err_probe() to simplify code.
- Fix spelling error in commit message.

Zhang Zekun (6):
  PCI: kirin: Use helper function
    for_each_available_child_of_node_scoped()
  PCI: kirin: Tidy up _probe() related function with dev_err_probe()
  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 | 46 +++++----------
 drivers/pci/controller/pci-tegra.c      | 74 ++++++++-----------------
 drivers/pci/controller/pcie-apple.c     |  4 +-
 drivers/pci/controller/pcie-mediatek.c  | 15 ++---
 drivers/pci/controller/pcie-mt7621.c    | 15 ++---
 5 files changed, 49 insertions(+), 105 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2024-08-30 12:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30  3:58 [PATCH v2 0/6] Simplify code with _scoped() helper functions Zhang Zekun
2024-08-30  3:58 ` [PATCH v2 1/6] PCI: kirin: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
2024-08-30  3:58 ` [PATCH v2 2/6] PCI: kirin: Tidy up _probe() related function with dev_err_probe() Zhang Zekun
2024-08-30 12:00   ` Jonathan Cameron
2024-08-30  3:58 ` [PATCH v2 3/6] PCI: mediatek: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
2024-08-30  3:58 ` [PATCH v2 4/6] PCI: mt7621: " Zhang Zekun
2024-08-30  4:35   ` Sergio Paracuellos
2024-08-30  3:58 ` [PATCH v2 5/6] PCI: apple: Use helper function for_each_child_of_node_scoped() Zhang Zekun
2024-08-30  3:58 ` [PATCH v2 6/6] PCI: tegra: " Zhang Zekun
2024-08-30 12:03   ` Jonathan Cameron

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