PCI: Add pci_msix_desc_addr() helper
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2016 09:20:14 +0000 (18:20 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Jul 2016 20:04:24 +0000 (15:04 -0500)
commit5eb6d660193ccc471b415d6f31e17312a63de167
tree904684139e077310120e0ef52732d15d691a5af8
parent5e385a6ef31fbbf2acbda770aecc2bc2ff933d17
PCI: Add pci_msix_desc_addr() helper

Add a pci_msix_desc_addr() helper to factor out the calculation of the base
address for a given MSI-X vector.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alexander Gordeev <agordeev@redhat.com>
drivers/pci/msi.c