summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-lm3642.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-07-21 17:19:04 +0200
committerLee Jones <lee@kernel.org>2024-08-01 13:40:08 +0100
commit10cc487692e7e3dea793a75af499696cc059f11d (patch)
tree2dce88597b0f72d8a8eb5aaefddbe1e6841e5ed1 /drivers/leds/leds-lm3642.c
parentffbf1fcb421429916a861cfc25dfe0c6387dda75 (diff)
leds: is31fl319x: Use device_for_each_child_node_scoped() to access 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. In this case, the child nodes are not required outside the loop, and the scoped version of the macro can be used to remove the repetitive `goto put` pattern. Use `device_for_each_child_node_scoped_scoped()` 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/20240721-device_for_each_child_node-available-v2-4-f33748fd8b2d@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-lm3642.c')
0 files changed, 0 insertions, 0 deletions