iommu/iommu-debug: Rename profiling device functions
The functions for iommu/devices/<device>/profiling don't actually have
the word `profiling' in the name, which will be confusing as we add more
files to that directory. Rename them for clarity.
Change-Id: Ic57d9400d8784d2cbd667185c5b2b0e1275461dd
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
diff --git a/drivers/iommu/iommu-debug.c b/drivers/iommu/iommu-debug.c
index b389604..85d89ac 100644
--- a/drivers/iommu/iommu-debug.c
+++ b/drivers/iommu/iommu-debug.c
@@ -301,7 +301,7 @@
iommu_domain_free(domain);
}
-static int iommu_debug_device_show(struct seq_file *s, void *ignored)
+static int iommu_debug_profiling_show(struct seq_file *s, void *ignored)
{
struct iommu_debug_device *ddev = s->private;
@@ -310,13 +310,13 @@
return 0;
}
-static int iommu_debug_device_open(struct inode *inode, struct file *file)
+static int iommu_debug_profiling_open(struct inode *inode, struct file *file)
{
- return single_open(file, iommu_debug_device_show, inode->i_private);
+ return single_open(file, iommu_debug_profiling_show, inode->i_private);
}
-static const struct file_operations iommu_debug_device_fops = {
- .open = iommu_debug_device_open,
+static const struct file_operations iommu_debug_profiling_fops = {
+ .open = iommu_debug_profiling_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
@@ -346,7 +346,7 @@
goto err;
}
profiling_dentry = debugfs_create_file("profiling", S_IRUSR, dir, ddev,
- &iommu_debug_device_fops);
+ &iommu_debug_profiling_fops);
if (!profiling_dentry) {
pr_err("Couldn't create iommu/devices/%s/profiling debugfs file\n",
dev_name(dev));