File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -926,17 +926,7 @@ static int tegra_smmu_swgroups_show(struct seq_file *s, void *data)
926
926
return 0 ;
927
927
}
928
928
929
- static int tegra_smmu_swgroups_open (struct inode * inode , struct file * file )
930
- {
931
- return single_open (file , tegra_smmu_swgroups_show , inode -> i_private );
932
- }
933
-
934
- static const struct file_operations tegra_smmu_swgroups_fops = {
935
- .open = tegra_smmu_swgroups_open ,
936
- .read = seq_read ,
937
- .llseek = seq_lseek ,
938
- .release = single_release ,
939
- };
929
+ DEFINE_SHOW_ATTRIBUTE (tegra_smmu_swgroups );
940
930
941
931
static int tegra_smmu_clients_show (struct seq_file * s , void * data )
942
932
{
@@ -964,17 +954,7 @@ static int tegra_smmu_clients_show(struct seq_file *s, void *data)
964
954
return 0 ;
965
955
}
966
956
967
- static int tegra_smmu_clients_open (struct inode * inode , struct file * file )
968
- {
969
- return single_open (file , tegra_smmu_clients_show , inode -> i_private );
970
- }
971
-
972
- static const struct file_operations tegra_smmu_clients_fops = {
973
- .open = tegra_smmu_clients_open ,
974
- .read = seq_read ,
975
- .llseek = seq_lseek ,
976
- .release = single_release ,
977
- };
957
+ DEFINE_SHOW_ATTRIBUTE (tegra_smmu_clients );
978
958
979
959
static void tegra_smmu_debugfs_init (struct tegra_smmu * smmu )
980
960
{
You can’t perform that action at this time.
0 commit comments