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

Commit 1c218004 authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman
Browse files

staging: unisys: shrink the name of a variable



The field debugfs_client_bus_info can be reduced to debugfs_bus_info.
The word client is extraneous in this context.

Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 61f38f9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -161,7 +161,7 @@ struct visor_device {
	void *vbus_hdr_info;
	void *vbus_hdr_info;
	guid_t partition_guid;
	guid_t partition_guid;
	struct dentry *debugfs_dir;
	struct dentry *debugfs_dir;
	struct dentry *debugfs_client_bus_info;
	struct dentry *debugfs_bus_info;
};
};


#define to_visor_device(x) container_of(x, struct visor_device, device)
#define to_visor_device(x) container_of(x, struct visor_device, device)
+9 −11
Original line number Original line Diff line number Diff line
@@ -179,7 +179,7 @@ static void visorbus_release_busdevice(struct device *xdev)
{
{
	struct visor_device *dev = dev_get_drvdata(xdev);
	struct visor_device *dev = dev_get_drvdata(xdev);


	debugfs_remove(dev->debugfs_client_bus_info);
	debugfs_remove(dev->debugfs_bus_info);
	debugfs_remove_recursive(dev->debugfs_dir);
	debugfs_remove_recursive(dev->debugfs_dir);
	visorchannel_destroy(dev->visorchannel);
	visorchannel_destroy(dev->visorchannel);
	kfree(dev);
	kfree(dev);
@@ -414,7 +414,7 @@ static void vbuschannel_print_devinfo(struct visor_vbus_deviceinfo *devinfo,
		   devinfo->infostrs);
		   devinfo->infostrs);
}
}


static int client_bus_info_debugfs_show(struct seq_file *seq, void *v)
static int bus_info_debugfs_show(struct seq_file *seq, void *v)
{
{
	int i = 0;
	int i = 0;
	unsigned long off;
	unsigned long off;
@@ -451,15 +451,14 @@ static int client_bus_info_debugfs_show(struct seq_file *seq, void *v)
	return 0;
	return 0;
}
}


static int client_bus_info_debugfs_open(struct inode *inode, struct file *file)
static int bus_info_debugfs_open(struct inode *inode, struct file *file)
{
{
	return single_open(file, client_bus_info_debugfs_show,
	return single_open(file, bus_info_debugfs_show, inode->i_private);
			   inode->i_private);
}
}


static const struct file_operations client_bus_info_debugfs_fops = {
static const struct file_operations bus_info_debugfs_fops = {
	.owner = THIS_MODULE,
	.owner = THIS_MODULE,
	.open = client_bus_info_debugfs_open,
	.open = bus_info_debugfs_open,
	.read = seq_read,
	.read = seq_read,
	.llseek = seq_lseek,
	.llseek = seq_lseek,
	.release = single_release,
	.release = single_release,
@@ -1024,10 +1023,9 @@ int visorbus_create_instance(struct visor_device *dev)


	dev->debugfs_dir = debugfs_create_dir(dev_name(&dev->device),
	dev->debugfs_dir = debugfs_create_dir(dev_name(&dev->device),
					      visorbus_debugfs_dir);
					      visorbus_debugfs_dir);
	dev->debugfs_client_bus_info =
	dev->debugfs_bus_info = debugfs_create_file("client_bus_info", 0440,
		debugfs_create_file("client_bus_info", 0440, dev->debugfs_dir,
						    dev->debugfs_dir, dev,
				    dev, &client_bus_info_debugfs_fops);
						    &bus_info_debugfs_fops);

	dev_set_drvdata(&dev->device, dev);
	dev_set_drvdata(&dev->device, dev);
	err = get_vbus_header_info(dev->visorchannel, &dev->device, hdr_info);
	err = get_vbus_header_info(dev->visorchannel, &dev->device, hdr_info);
	if (err < 0)
	if (err < 0)