summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/vg468.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-10-20 22:38:54 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-11-07 01:48:58 +0100
commit24a0c654d7d6063301c51361f911369264342b3c (patch)
tree22d07a3196b6e8ca3ed23e5b68dcd320488b5ba7 /drivers/pcmcia/vg468.h
parentPCI: shpchp: Convert timers to use timer_setup() (diff)
downloadlinux-24a0c654d7d6063301c51361f911369264342b3c.tar.xz
linux-24a0c654d7d6063301c51361f911369264342b3c.zip
PCI: Add for_each_pci_bridge() helper
The following pattern is often used: list_for_each_entry(dev, &bus->devices, bus_list) { if (pci_is_bridge(dev)) { ... } } Add a for_each_pci_bridge() helper to make that code easier to write and read by reducing indentation level. It also saves one or few lines of code in each occurrence. Convert PCI core parts here at the same time. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> [bhelgaas: fold in http://lkml.kernel.org/r/20171013165352.25550-1-andriy.shevchenko@linux.intel.com] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pcmcia/vg468.h')
0 files changed, 0 insertions, 0 deletions