]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: pca995x: Use device_for_each_child_node() to access device child nodes
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Mon, 5 Aug 2024 14:49:45 +0000 (16:49 +0200)
committerLee Jones <lee@kernel.org>
Mon, 5 Aug 2024 16:00:22 +0000 (17:00 +0100)
commit6eefd65ba6ae29ab801f6461e59c10f93dd496f8
tree6207a357aef5c2993390936fec758c1ac92304ab
parent70a4375e07fcbb771809f0af8b5f0df029ca660f
leds: pca995x: Use device_for_each_child_node() to access device child nodes

The iterated nodes are direct children of the device node, and the
`device_for_each_child_node()` macro accounts for child node
availability.

`fwnode_for_each_available_child_node()` is meant to access the child
nodes of an fwnode, and therefore not direct child nodes of the device
node.

Use `device_for_each_child_node()` to indicate device's direct child
nodes.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240805-device_for_each_child_node-available-v3-2-48243a4aa5c0@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-pca995x.c