From c77e52265097c9b699da51ebc138489dc43c76f2 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Wed, 21 Oct 2015 23:51:37 +0200 Subject: iommu: Export and rename iommu_group_get_for_pci_dev() Rename that function to pci_device_group() and export it, so that IOMMU drivers can use it as their device_group call-back. Change-Id: Ic54268d9854dd2eeba53ca9f9635d0287bfc7f0f Signed-off-by: Joerg Roedel [pdaly@codeaurora.org Resolve minor conflicts] --- include/linux/iommu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/iommu.h b/include/linux/iommu.h index e63a818925d1..88f91968710c 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -370,6 +370,9 @@ static inline size_t iommu_map_sg(struct iommu_domain *domain, extern int iommu_dma_supported(struct iommu_domain *domain, struct device *dev, u64 mask); +/* PCI device grouping function */ +extern struct iommu_group *pci_device_group(struct device *dev); + #else /* CONFIG_IOMMU_API */ struct iommu_ops {}; -- cgit v1.2.3