diff options
author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-07-06 14:58:23 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:13:26 -0700 |
commit | 682dd703a1a69de85744334a56f822bbf1655259 (patch) | |
tree | e9adbe1802dad2040ac1b2018833201813c89e3b /drivers/iommu/iommu-debug.c | |
parent | 8f418bc8a35748d403767c4060cece8ec45f43cf (diff) |
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>
Diffstat (limited to 'drivers/iommu/iommu-debug.c')
-rw-r--r-- | drivers/iommu/iommu-debug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/iommu/iommu-debug.c b/drivers/iommu/iommu-debug.c index d12e4c4e4e84..df9f003d60d0 100644 --- a/drivers/iommu/iommu-debug.c +++ b/drivers/iommu/iommu-debug.c @@ -315,7 +315,7 @@ out_domain_free: 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; @@ -324,13 +324,13 @@ static int iommu_debug_device_show(struct seq_file *s, void *ignored) 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, @@ -360,7 +360,7 @@ static int snarf_iommu_devices(struct device *dev, void *ignored) 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)); |