Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2cafc93 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

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: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent d2e2e09d
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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));