aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-08-20 19:02:27 +0000
committerLee Jones <[email protected]>2024-08-22 13:48:02 +0000
commit77b2b4759849a9bb1cb54829f52945bad7a46919 (patch)
tree4b71beb3f8cc7d95b6f766299066bd08547b6520 /security/selinux/hooks.c
parentleds: qcom-lpg: Simplify with scoped for each OF child loop (diff)
downloadkernel-77b2b4759849a9bb1cb54829f52945bad7a46919.tar.gz
kernel-77b2b4759849a9bb1cb54829f52945bad7a46919.zip
leds: as3645a: Use device_* to iterate over device child nodes
Drop the manual access to the fwnode of the device to iterate over its child nodes. `device_for_each_child_node` macro provides direct access to the child nodes, and given that the `child` variable is only required within the loop, the scoped variant of the macro can be used. Use the `device_for_each_child_node_scoped` macro to iterate over the direct child nodes of the device. Signed-off-by: Javier Carrasco <[email protected]> Acked-by: Sakari Ailus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions