summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2014-09-03 18:34:04 +0200
committerJoerg Roedel <jroedel@suse.de>2014-09-25 15:44:49 +0200
commit1aed074869a9cbe0a846ea7b254d8fd9a4a4d31f (patch)
tree54b73121409c21112fee7e61dc749d076157cddb /drivers/iommu
parentLinux 3.17-rc6 (diff)
downloadlinux-1aed074869a9cbe0a846ea7b254d8fd9a4a4d31f.tar.xz
linux-1aed074869a9cbe0a846ea7b254d8fd9a4a4d31f.zip
iommu: Convert iommu-caps from define to enum
Allow compile-time type-checking. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 0639b9274b11..bc45478e26db 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -948,7 +948,7 @@ phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova)
EXPORT_SYMBOL_GPL(iommu_iova_to_phys);
int iommu_domain_has_cap(struct iommu_domain *domain,
- unsigned long cap)
+ enum iommu_cap cap)
{
if (unlikely(domain->ops->domain_has_cap == NULL))
return 0;