File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -1128,18 +1128,7 @@ static ssize_t gb_camera_debugfs_write(struct file *file,
1128
1128
1129
1129
static int gb_camera_debugfs_open (struct inode * inode , struct file * file )
1130
1130
{
1131
- unsigned int i ;
1132
-
1133
- for (i = 0 ; i < ARRAY_SIZE (gb_camera_debugfs_entries ); ++ i ) {
1134
- const struct gb_camera_debugfs_entry * entry =
1135
- & gb_camera_debugfs_entries [i ];
1136
-
1137
- if (!strcmp (file -> f_path .dentry -> d_iname , entry -> name )) {
1138
- file -> private_data = (void * )entry ;
1139
- break ;
1140
- }
1141
- }
1142
-
1131
+ file -> private_data = (void * )debugfs_get_aux (file );
1143
1132
return 0 ;
1144
1133
}
1145
1134
@@ -1175,8 +1164,8 @@ static int gb_camera_debugfs_init(struct gb_camera *gcam)
1175
1164
1176
1165
gcam -> debugfs .buffers [i ].length = 0 ;
1177
1166
1178
- debugfs_create_file (entry -> name , entry -> mask ,
1179
- gcam -> debugfs .root , gcam ,
1167
+ debugfs_create_file_aux (entry -> name , entry -> mask ,
1168
+ gcam -> debugfs .root , gcam , entry ,
1180
1169
& gb_camera_debugfs_ops );
1181
1170
}
1182
1171
You can’t perform that action at this time.
0 commit comments