Thread (8 messages) 8 messages, 5 authors, 2024-08-19

Re: [PATCH v2 0/3] use device_for_each_child_node_scoped to access device child nodes

From: Suzuki K Poulose <suzuki.poulose@arm.com>
Date: 2024-08-19 14:33:51
Also in: linux-iio, linux-leds, lkml

On Thu, 08 Aug 2024 17:12:36 +0200, Javier Carrasco wrote:
This series removes accesses to the device `fwnode` to iterate over its
own child nodes. Using the `device_for_each_child_node` macro provides
direct access to the device child nodes, and given that in all cases
they are only required within the loop, the scoped variant of the macro
can be used.

It has been stated in previous discussions [1] that `device_for_each_*`
should be used to access device child nodes, removing the need to access
its internal fwnode, and restricting `fwnode_for_each_*` to traversing
subnodes when required.

[...]
Applied, to coresight next tree. Thanks!

[1/3] coresight: cti: use device_* to iterate over device child nodes
      https://git.kernel.org/coresight/c/daca644d0c9e0

Best regards,
-- 
Suzuki K Poulose [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help