vcsm: Fix use of S_IRUGO and use 0444 instead
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 1 Sep 2017 16:33:49 +0000 (17:33 +0100)
committerpopcornmix <popcornmix@gmail.com>
Tue, 5 Sep 2017 16:45:44 +0000 (17:45 +0100)
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/char/broadcom/vc_sm/vmcs_sm.c

index 863675727bb7258ed4d13570f602c13b942da0d3..c8df7c80596038c3d1f03af3b17095b9b50238c8 100644 (file)
@@ -1047,7 +1047,7 @@ static struct SM_PRIV_DATA_T *vc_sm_create_priv_data(pid_t id)
        } else {
                struct dentry *dir_entry;
 
-               dir_entry = debugfs_create_file(VC_SM_RESOURCES, S_IRUGO,
+               dir_entry = debugfs_create_file(VC_SM_RESOURCES, 0444,
                                file_data->dir_pid, file_data,
                                vc_sm_debug_fs_fops);
 
@@ -1055,7 +1055,7 @@ static struct SM_PRIV_DATA_T *vc_sm_create_priv_data(pid_t id)
                file_data->dir_res.priv_data = file_data;
                file_data->dir_res.show = &vc_sm_alloc_show;
 
-               dir_entry = debugfs_create_file(VC_SM_STATS, S_IRUGO,
+               dir_entry = debugfs_create_file(VC_SM_STATS, 0444,
                                file_data->dir_pid, file_data,
                                vc_sm_debug_fs_fops);
 
@@ -3194,12 +3194,12 @@ static void vc_sm_connected_init(void)
 
        sm_state->dir_state.show = &vc_sm_global_state_show;
        sm_state->dir_state.dir_entry = debugfs_create_file(VC_SM_STATE,
-                       S_IRUGO, sm_state->dir_root, &sm_state->dir_state,
+                       0444, sm_state->dir_root, &sm_state->dir_state,
                        &vc_sm_debug_fs_fops);
 
        sm_state->dir_stats.show = &vc_sm_global_statistics_show;
        sm_state->dir_stats.dir_entry = debugfs_create_file(VC_SM_STATS,
-                       S_IRUGO, sm_state->dir_root, &sm_state->dir_stats,
+                       0444, sm_state->dir_root, &sm_state->dir_stats,
                        &vc_sm_debug_fs_fops);
 
        /* Create the proc entry children. */