File tree Expand file tree Collapse file tree 3 files changed +6
-39
lines changed Expand file tree Collapse file tree 3 files changed +6
-39
lines changed Original file line number Diff line number Diff line change 26
26
#include <asm/processor.h>
27
27
#include <asm/mmu_context.h>
28
28
29
- static int asids_seq_show (struct seq_file * file , void * iter )
29
+ static int asids_debugfs_show (struct seq_file * file , void * iter )
30
30
{
31
31
struct task_struct * p ;
32
32
@@ -48,18 +48,7 @@ static int asids_seq_show(struct seq_file *file, void *iter)
48
48
return 0 ;
49
49
}
50
50
51
- static int asids_debugfs_open (struct inode * inode , struct file * file )
52
- {
53
- return single_open (file , asids_seq_show , inode -> i_private );
54
- }
55
-
56
- static const struct file_operations asids_debugfs_fops = {
57
- .owner = THIS_MODULE ,
58
- .open = asids_debugfs_open ,
59
- .read = seq_read ,
60
- .llseek = seq_lseek ,
61
- .release = single_release ,
62
- };
51
+ DEFINE_SHOW_ATTRIBUTE (asids_debugfs );
63
52
64
53
static int __init asids_debugfs_init (void )
65
54
{
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ enum cache_type {
22
22
CACHE_TYPE_UNIFIED ,
23
23
};
24
24
25
- static int cache_seq_show (struct seq_file * file , void * iter )
25
+ static int cache_debugfs_show (struct seq_file * file , void * iter )
26
26
{
27
27
unsigned int cache_type = (unsigned int )file -> private ;
28
28
struct cache_info * cache ;
@@ -94,18 +94,7 @@ static int cache_seq_show(struct seq_file *file, void *iter)
94
94
return 0 ;
95
95
}
96
96
97
- static int cache_debugfs_open (struct inode * inode , struct file * file )
98
- {
99
- return single_open (file , cache_seq_show , inode -> i_private );
100
- }
101
-
102
- static const struct file_operations cache_debugfs_fops = {
103
- .owner = THIS_MODULE ,
104
- .open = cache_debugfs_open ,
105
- .read = seq_read ,
106
- .llseek = seq_lseek ,
107
- .release = single_release ,
108
- };
97
+ DEFINE_SHOW_ATTRIBUTE (cache_debugfs );
109
98
110
99
static int __init cache_debugfs_init (void )
111
100
{
Original file line number Diff line number Diff line change @@ -812,7 +812,7 @@ bool __in_29bit_mode(void)
812
812
return (__raw_readl (PMB_PASCR ) & PASCR_SE ) == 0 ;
813
813
}
814
814
815
- static int pmb_seq_show (struct seq_file * file , void * iter )
815
+ static int pmb_debugfs_show (struct seq_file * file , void * iter )
816
816
{
817
817
int i ;
818
818
@@ -846,18 +846,7 @@ static int pmb_seq_show(struct seq_file *file, void *iter)
846
846
return 0 ;
847
847
}
848
848
849
- static int pmb_debugfs_open (struct inode * inode , struct file * file )
850
- {
851
- return single_open (file , pmb_seq_show , NULL );
852
- }
853
-
854
- static const struct file_operations pmb_debugfs_fops = {
855
- .owner = THIS_MODULE ,
856
- .open = pmb_debugfs_open ,
857
- .read = seq_read ,
858
- .llseek = seq_lseek ,
859
- .release = single_release ,
860
- };
849
+ DEFINE_SHOW_ATTRIBUTE (pmb_debugfs );
861
850
862
851
static int __init pmb_debugfs_init (void )
863
852
{
You can’t perform that action at this time.
0 commit comments