Staging: unisys: visorbus: visorbus_main.c: fixed style
authorDerek Robson <robsonde@gmail.com>
Sat, 7 Jan 2017 22:08:01 +0000 (11:08 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:29:46 +0000 (17:29 +0100)
Changed file permissions to octal sytle.
Found using checkpatch.

Acked-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Derek Robson <robsonde@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index 7c2aa79252f5dbd07b3e7f981c0a083ae7813ebe..aea1aa262b2859d5895b43129d0848b69b1275ee 100644 (file)
@@ -990,7 +990,7 @@ create_bus_instance(struct visor_device *dev)
                goto err_hdr_info;
        }
        dev->debugfs_client_bus_info =
-               debugfs_create_file("client_bus_info", S_IRUSR | S_IRGRP,
+               debugfs_create_file("client_bus_info", 0440,
                                    dev->debugfs_dir, dev,
                                    &client_bus_info_debugfs_fops);
        if (!dev->debugfs_client_bus_info) {
@@ -1343,10 +1343,10 @@ visorbus_exit(void)
        debugfs_remove_recursive(visorbus_debugfs_dir);
 }
 
-module_param_named(forcematch, visorbus_forcematch, int, S_IRUGO);
+module_param_named(forcematch, visorbus_forcematch, int, 0444);
 MODULE_PARM_DESC(visorbus_forcematch,
                 "1 to force a successful dev <--> drv match");
 
-module_param_named(forcenomatch, visorbus_forcenomatch, int, S_IRUGO);
+module_param_named(forcenomatch, visorbus_forcenomatch, int, 0444);
 MODULE_PARM_DESC(visorbus_forcenomatch,
                 "1 to force an UNsuccessful dev <--> drv match");