PCI/P2PDMA: Refactor pci_p2pdma_map_type()
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 10 Jun 2021 16:06:08 +0000 (10:06 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Jun 2021 23:01:41 +0000 (18:01 -0500)
commit7e2faa1710c408712185bb6463eaa0ee4776350f
treefc9785d7c11cf9832e64512c1376bad0bc4f5c53
parentcf201bfe8cdc9ba11c4f312945b908ed24c7b7b5
PCI/P2PDMA: Refactor pci_p2pdma_map_type()

All callers of pci_p2pdma_map_type() have a struct dev_pgmap and a struct
device (of the client doing the DMA transfer). Thus move the conversion to
struct pci_devs for the provider and client into this function.

Link: https://lore.kernel.org/r/20210610160609.28447-6-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/p2pdma.c