diff options
| author | Joerg Roedel <jroedel@suse.de> | 2015-10-21 23:51:36 +0200 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:15:28 -0700 |
| commit | 4e226b0bdfacbf81f296132866b195e8c118019e (patch) | |
| tree | 62c09dea7886902fdb7983073998218e5d71cc75 /include/linux | |
| parent | e0c04a47d6fba9826e029581073a83f96b1e910d (diff) | |
iommu: Revive device_group iommu-ops call-back
That call-back is currently unused, change it into a
call-back function for finding the right IOMMU group for a
device.
This is a first step to remove the hard-coded PCI dependency
in the iommu-group code.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 00e3f17319af..e63a818925d1 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -191,7 +191,7 @@ struct iommu_ops { dma_addr_t iova); int (*add_device)(struct device *dev); void (*remove_device)(struct device *dev); - int (*device_group)(struct device *dev, unsigned int *groupid); + struct iommu_group *(*device_group)(struct device *dev); int (*domain_get_attr)(struct iommu_domain *domain, enum iommu_attr attr, void *data); int (*domain_set_attr)(struct iommu_domain *domain, |
