]> www.infradead.org Git - users/jedix/linux-maple.git/commit
backlight: 88pm860x_bl: Simplify with scoped for each OF child loop
authorJinjie Ruan <ruanjinjie@huawei.com>
Thu, 22 Aug 2024 06:25:46 +0000 (14:25 +0800)
committerLee Jones <lee@kernel.org>
Wed, 2 Oct 2024 12:46:34 +0000 (13:46 +0100)
commit9b216717248e1acf270d76174faa2f8e4a789459
tree2ee43d8bba3bd17fea5d3fdb57696434d56092aa
parent0d580d99749e759b62dc8e28f511310e9235da7a
backlight: 88pm860x_bl: Simplify with scoped for each OF child loop

Use scoped for_each_child_of_node_scoped() when iterating over device
nodes to make code a bit simpler.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240822062546.3490076-1-ruanjinjie@huawei.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/88pm860x_bl.c