]> 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)
commita4182cec3bf67707fb0310b79cd750d1fa481866
tree88fc1e49c13757ac4eab9de15fa34f55e11ea406
parentd4fb4159db01d37d802517278f21cf9b1381cf41
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