aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-09-12 16:53:10 +0000
committerGreg Kroah-Hartman <[email protected]>2023-10-05 11:58:07 +0000
commit441f0dd8fa035a2c7cfe972047bb905d3be05c1b (patch)
tree5105418511f57d0900f5785b35191dc7ceda6498 /scripts/mod/file2alias.c
parentPCI: Implement custom llseek for sysfs resource entries (diff)
downloadkernel-441f0dd8fa035a2c7cfe972047bb905d3be05c1b.tar.gz
kernel-441f0dd8fa035a2c7cfe972047bb905d3be05c1b.zip
resource: Reuse for_each_resource() macro
We have a few places where for_each_resource() is open coded. Replace that by the macro. This makes code easier to read and understand. With this, compile r_next() only for CONFIG_PROC_FS=y. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions