aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/pci.c
diff options
context:
space:
mode:
authorMatti Vaittinen <[email protected]>2025-06-09 07:26:47 +0000
committerGreg Kroah-Hartman <[email protected]>2025-07-01 10:31:37 +0000
commitb75e1f0619bd707e027812e262af3fbce445e71a (patch)
tree8de98d9ff944a8e49a61dc9475ab7d43ecfc1f78 /rust/helpers/pci.c
parentDocs/ABI: Fix sysfs-kernel-address_bits path (diff)
downloadkernel-b75e1f0619bd707e027812e262af3fbce445e71a.tar.gz
kernel-b75e1f0619bd707e027812e262af3fbce445e71a.zip
device property: Use tidy for_each_named_* macros
Implementing if-conditions inside for_each_x() macros requires some thinking to avoid side effects in the calling code. Resulting code may look somewhat awkward, and there are couple of different ways it is usually done. Standardizing this to one way can help making it more obvious for a code reader and writer. The newly added for_each_if() is a way to achieve this. Use for_each_if() to make these macros look like many others which should in the long run help reading the code. Signed-off-by: Matti Vaittinen <[email protected]> Acked-by: Sakari Ailus <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/c98b39a7195006fdd24590b8d11bb271a72a0c8a.1749453752.git.mazziesaccount@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions