Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Simplify code with _scoped() helper functions
@ 2024-08-31  4:04 Zhang Zekun
  2024-08-31  4:04 ` [PATCH v3 1/6] PCI: kirin: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Zhang Zekun @ 2024-08-31  4:04 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.

v3:
- Fix a spelling error.
- wrap the line when it is too long.

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 | 50 ++++++----------
 drivers/pci/controller/pci-tegra.c      | 80 +++++++++----------------
 drivers/pci/controller/pcie-apple.c     |  4 +-
 drivers/pci/controller/pcie-mediatek.c  | 15 ++---
 drivers/pci/controller/pcie-mt7621.c    | 15 ++---
 5 files changed, 58 insertions(+), 106 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2025-03-06  9:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-31  4:04 [PATCH v3 0/6] Simplify code with _scoped() helper functions Zhang Zekun
2024-08-31  4:04 ` [PATCH v3 1/6] PCI: kirin: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
2025-03-05  5:49   ` Manivannan Sadhasivam
2024-08-31  4:04 ` [PATCH v3 2/6] PCI: kirin: Tidy up _probe() related function with dev_err_probe() Zhang Zekun
2025-03-05  5:54   ` Manivannan Sadhasivam
2025-03-05 11:24     ` Krzysztof Wilczyński
2025-03-06  9:45       ` Krzysztof Wilczyński
2024-08-31  4:04 ` [PATCH v3 3/6] PCI: mediatek: Use helper function for_each_available_child_of_node_scoped() Zhang Zekun
2025-03-05  5:55   ` Manivannan Sadhasivam
2024-08-31  4:04 ` [PATCH v3 4/6] PCI: mt7621: " Zhang Zekun
2025-03-05  5:56   ` Manivannan Sadhasivam
2024-08-31  4:04 ` [PATCH v3 5/6] PCI: apple: Use helper function for_each_child_of_node_scoped() Zhang Zekun
2025-03-05  5:57   ` Manivannan Sadhasivam
2024-08-31  4:04 ` [PATCH v3 6/6] PCI: tegra: " Zhang Zekun
2025-03-05  5:59   ` Manivannan Sadhasivam
2025-03-02 18:32 ` [PATCH v3 0/6] Simplify code with _scoped() helper functions Krzysztof Wilczyński
2025-03-05 11:25   ` Krzysztof Wilczyński

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