]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: portdrv: Deduplicate PM callback iterator
authorLukas Wunner <lukas@wunner.de>
Thu, 19 Jul 2018 22:27:52 +0000 (17:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Jul 2018 16:07:59 +0000 (11:07 -0500)
commit99cf2d2252d67adb8d8ddd36075f4d045084e3e5
tree88fc1e49c13757ac4eab9de15fa34f55e11ea406
parente0b8b9872599417a8315242eb68c26ac0901dfea
PCI: portdrv: Deduplicate PM callback iterator

Replace suspend_iter() and resume_iter() with a single function pm_iter()
to allow addition of port service callbacks for further power management
phases without having to add another iterator each time.

No functional change intended.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_core.c