diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-09-03 18:34:04 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-09-25 15:44:49 +0200 |
commit | 1aed074869a9cbe0a846ea7b254d8fd9a4a4d31f (patch) | |
tree | 54b73121409c21112fee7e61dc749d076157cddb /drivers/iommu/iommu.c | |
parent | 0f33be009b89d2268e94194dc4fd01a7851b6d51 (diff) |
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/iommu.c')
-rw-r--r-- | drivers/iommu/iommu.c | 2 |
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; |