PCI: Document pci_bus_for_each_resource()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Mar 2023 16:24:31 +0000 (19:24 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Apr 2023 15:47:11 +0000 (10:47 -0500)
commitceb928be5cab32043f230bcb1adeb0a9a9b8f0f2
tree1b9e8f0535db2694b894ff577cffca609839f43b
parent09cc900632400079619e9154604fd299c2cc9a5a
PCI: Document pci_bus_for_each_resource()

There might be confusion about why pci_bus_for_each_resource() uses
Logical OR. Document the entire macro and explain how it works and why the
conditional needs to be like that.

Link: https://lore.kernel.org/r/20230330162434.35055-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h