linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] device property: Add scoped fwnode child node iterators
@ 2025-09-01 16:36 Jean-François Lessard
  2025-09-01 16:36 ` [PATCH v3 1/2] " Jean-François Lessard
  2025-09-01 16:36 ` [PATCH v3 2/2] i2c: core: Use fwnode_for_each_child_node_scoped() Jean-François Lessard
  0 siblings, 2 replies; 9+ messages in thread
From: Jean-François Lessard @ 2025-09-01 16:36 UTC (permalink / raw)
  To: Wolfram Sang, Andy Shevchenko, Daniel Scally, Heikki Krogerus,
	Sakari Ailus, Greg Kroah-Hartman, Rafael J. Wysocki,
	Danilo Krummrich
  Cc: linux-i2c, linux-kernel, linux-acpi

This series adds scoped versions of fwnode iterator macros and converts
existing manual implementation to use them.

The first patch adds the infrastructure macros following existing patterns
for scoped iterators in the kernel. The second patch demonstrates their
usage by converting existing manual __free() usage in i2c-core-slave.c.

Changes in v3:
- Split into separate patches as requested
- Infrastructure addition in patch 1/2
- Usage example in patch 2/2

Changes in v2:
- replace manual __free(fwnode_handle) of i2c-core-slave.c with
  fwnode_for_each_child_node_scoped

Jean-François Lessard (2):
  device property: Add scoped fwnode child node iterators
  i2c: core: Use fwnode_for_each_child_node_scoped()

 drivers/i2c/i2c-core-slave.c |  3 +--
 include/linux/property.h     | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-09-02 16:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-01 16:36 [PATCH v3 0/2] device property: Add scoped fwnode child node iterators Jean-François Lessard
2025-09-01 16:36 ` [PATCH v3 1/2] " Jean-François Lessard
2025-09-01 17:48   ` Danilo Krummrich
2025-09-01 18:16     ` Jean-François Lessard
2025-09-02  4:50       ` Greg Kroah-Hartman
2025-09-02 16:54         ` Jean-François Lessard
2025-09-01 16:36 ` [PATCH v3 2/2] i2c: core: Use fwnode_for_each_child_node_scoped() Jean-François Lessard
2025-09-02  9:44   ` Andy Shevchenko
2025-09-02 16:56     ` Jean-François Lessard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).