diff options
author | Thomas Jespersen <laumann.thomas@gmail.com> | 2017-04-06 22:58:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 12:49:36 +0200 |
commit | bca74ee5fec06efd5615102790ff1ff773a2f717 (patch) | |
tree | 82f55e18bbe5023b8b1eb8708491a285405292cd /drivers/staging/unisys | |
parent | 008b5d28451550ae3ddfd56b9d36715edd3bb504 (diff) |
staging: unisys: visornic: Replace symbolic perms with octal
Replace symbolic permissions S_IRUSR and S_IWUSR for their octal
counterparts
Signed-off-by: Thomas Jespersen <laumann.thomas@gmail.com>
Acked-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r-- | drivers/staging/unisys/visornic/visornic_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index feece918e348..1008337473a8 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -2146,11 +2146,11 @@ static int visornic_init(void) if (!visornic_debugfs_dir) return err; - ret = debugfs_create_file("info", S_IRUSR, visornic_debugfs_dir, NULL, + ret = debugfs_create_file("info", 0400, visornic_debugfs_dir, NULL, &debugfs_info_fops); if (!ret) goto cleanup_debugfs; - ret = debugfs_create_file("enable_ints", S_IWUSR, visornic_debugfs_dir, + ret = debugfs_create_file("enable_ints", 0200, visornic_debugfs_dir, NULL, &debugfs_enable_ints_fops); if (!ret) goto cleanup_debugfs; |