diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-09-03 12:34:04 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-09-25 09:44:49 -0400 |
commit | 1aed074869a9cbe0a846ea7b254d8fd9a4a4d31f (patch) | |
tree | 54b73121409c21112fee7e61dc749d076157cddb /drivers/iommu | |
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')
-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) | |||
948 | EXPORT_SYMBOL_GPL(iommu_iova_to_phys); | 948 | EXPORT_SYMBOL_GPL(iommu_iova_to_phys); |
949 | 949 | ||
950 | int iommu_domain_has_cap(struct iommu_domain *domain, | 950 | int iommu_domain_has_cap(struct iommu_domain *domain, |
951 | unsigned long cap) | 951 | enum iommu_cap cap) |
952 | { | 952 | { |
953 | if (unlikely(domain->ops->domain_has_cap == NULL)) | 953 | if (unlikely(domain->ops->domain_has_cap == NULL)) |
954 | return 0; | 954 | return 0; |