]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iommu: Rename iommu_get_instance()
authorJoerg Roedel <jroedel@suse.de>
Tue, 31 Jan 2017 15:58:42 +0000 (16:58 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 10 Feb 2017 12:44:57 +0000 (13:44 +0100)
Rename the function to iommu_ops_from_fwnode(), because that
is what the function actually does. The new name is much
more descriptive about what the function does.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/acpi/arm64/iort.c
drivers/iommu/iommu.c
include/linux/iommu.h
include/linux/of_iommu.h

index e0d2e6e6e40caf03b7c1bf4712664071e433becf..3752521c62aba1fc71700646f53ca241f305fda4 100644 (file)
@@ -536,7 +536,7 @@ static const struct iommu_ops *iort_iommu_xlate(struct device *dev,
                if (!iort_fwnode)
                        return NULL;
 
-               ops = iommu_get_instance(iort_fwnode);
+               ops = iommu_ops_from_fwnode(iort_fwnode);
                if (!ops)
                        return NULL;
 
index aed906a3e3db7ca7c452b3bbe584d6f6c1e30767..2bb61e806a52223487dcd8e4f5ae8fdc8fa9e256 100644 (file)
@@ -1664,7 +1664,7 @@ void iommu_register_instance(struct fwnode_handle *fwnode,
        spin_unlock(&iommu_instance_lock);
 }
 
-const struct iommu_ops *iommu_get_instance(struct fwnode_handle *fwnode)
+const struct iommu_ops *iommu_ops_from_fwnode(struct fwnode_handle *fwnode)
 {
        struct iommu_instance *instance;
        const struct iommu_ops *ops = NULL;
index 0ff5111f69595bf9ec93c93677a80816066da820..085e1f0e6c0760a5b9cde77fc2201c12618d6aaf 100644 (file)
@@ -354,7 +354,7 @@ void iommu_fwspec_free(struct device *dev);
 int iommu_fwspec_add_ids(struct device *dev, u32 *ids, int num_ids);
 void iommu_register_instance(struct fwnode_handle *fwnode,
                             const struct iommu_ops *ops);
-const struct iommu_ops *iommu_get_instance(struct fwnode_handle *fwnode);
+const struct iommu_ops *iommu_ops_from_fwnode(struct fwnode_handle *fwnode);
 
 #else /* CONFIG_IOMMU_API */
 
@@ -590,7 +590,7 @@ static inline void iommu_register_instance(struct fwnode_handle *fwnode,
 }
 
 static inline
-const struct iommu_ops *iommu_get_instance(struct fwnode_handle *fwnode)
+const struct iommu_ops *iommu_ops_from_fwnode(struct fwnode_handle *fwnode)
 {
        return NULL;
 }
index 6a7fc50510999eb330982c3d7b4452cb373063e2..66fcbc949899cb62a3afabec79cc0872bd2d5cad 100644 (file)
@@ -39,7 +39,7 @@ static inline void of_iommu_set_ops(struct device_node *np,
 
 static inline const struct iommu_ops *of_iommu_get_ops(struct device_node *np)
 {
-       return iommu_get_instance(&np->fwnode);
+       return iommu_ops_from_fwnode(&np->fwnode);
 }
 
 extern struct of_device_id __iommu_of_table;