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

Signed-off-by: David Kershner <david.kersh...@unisys.com>
Reviewed-by: Tim Sell <timothy.s...@unisys.com>
---
 drivers/staging/unisys/include/visorbus.h       |  2 +-
 drivers/staging/unisys/visorbus/visorbus_main.c | 20 +++++++++-----------
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/drivers/staging/unisys/include/visorbus.h 
b/drivers/staging/unisys/include/visorbus.h
index e4ee38c..ea01a21 100644
--- a/drivers/staging/unisys/include/visorbus.h
+++ b/drivers/staging/unisys/include/visorbus.h
@@ -161,7 +161,7 @@ struct visor_device {
        void *vbus_hdr_info;
        guid_t partition_guid;
        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)
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c 
b/drivers/staging/unisys/visorbus/visorbus_main.c
index 308372e..4a128dc 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -179,7 +179,7 @@ static void visorbus_release_busdevice(struct device *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);
        visorchannel_destroy(dev->visorchannel);
        kfree(dev);
@@ -414,7 +414,7 @@ static void vbuschannel_print_devinfo(struct 
visor_vbus_deviceinfo *devinfo,
                   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;
        unsigned long off;
@@ -451,15 +451,14 @@ static int client_bus_info_debugfs_show(struct seq_file 
*seq, void *v)
        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,
-                          inode->i_private);
+       return single_open(file, bus_info_debugfs_show, 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,
-       .open = client_bus_info_debugfs_open,
+       .open = bus_info_debugfs_open,
        .read = seq_read,
        .llseek = seq_lseek,
        .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),
                                              visorbus_debugfs_dir);
-       dev->debugfs_client_bus_info =
-               debugfs_create_file("client_bus_info", 0440, dev->debugfs_dir,
-                                   dev, &client_bus_info_debugfs_fops);
-
+       dev->debugfs_bus_info = debugfs_create_file("client_bus_info", 0440,
+                                                   dev->debugfs_dir, dev,
+                                                   &bus_info_debugfs_fops);
        dev_set_drvdata(&dev->device, dev);
        err = get_vbus_header_info(dev->visorchannel, &dev->device, hdr_info);
        if (err < 0)
-- 
1.9.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to