]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
iommu: Rename iommu_get_instance()
authorJoerg Roedel <jroedel@suse.de>
Tue, 31 Jan 2017 15:58:42 +0000 (16:58 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:50:03 +0000 (10:50 +0200)
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.

BugLink: http://bugs.launchpad.net/bugs/1688158
Signed-off-by: Joerg Roedel <jroedel@suse.de>
(cherry picked from commit 534766dfef999f7e7349bbd91cd19c1673792af3)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/acpi/arm64/iort.c
drivers/iommu/iommu.c
include/linux/iommu.h
include/linux/of_iommu.h

index 95d64a327db071ac0b1a60db287e75024b717211..72137eb2d9d50ec88303023dd4400114eeabd8f9 100644 (file)
@@ -631,7 +631,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 78036e1bf40038102c5d7c7bbefab23f0d543088..67863b3e28d612f9f110a16635679dd1be0d65e4 100644 (file)
@@ -1808,7 +1808,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 bec3730dc00937d11677a16f84cc0f396f0655ff..ded067b805c94c77fc58247c943abac166e47731 100644 (file)
@@ -366,7 +366,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 */
 
@@ -608,7 +608,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;