1
1
/*
2
- * hsr_prp_debugfs code
2
+ * hsr_debugfs code
3
3
* Copyright (C) 2017 Texas Instruments Incorporated
4
4
*
5
5
* Author(s):
@@ -26,9 +26,9 @@ static void print_mac_address(struct seq_file *sfp, unsigned char *mac)
26
26
mac [0 ], mac [1 ], mac [2 ], mac [3 ], mac [4 ], mac [5 ]);
27
27
}
28
28
29
- /* hsr_prp_node_table_show - Formats and prints node_table entries */
29
+ /* hsr_node_table_show - Formats and prints node_table entries */
30
30
static int
31
- hsr_prp_node_table_show (struct seq_file * sfp , void * data )
31
+ hsr_node_table_show (struct seq_file * sfp , void * data )
32
32
{
33
33
struct hsr_priv * priv = (struct hsr_priv * )sfp -> private ;
34
34
struct hsr_node * node ;
@@ -52,50 +52,50 @@ hsr_prp_node_table_show(struct seq_file *sfp, void *data)
52
52
return 0 ;
53
53
}
54
54
55
- /* hsr_prp_node_table_open - Open the node_table file
55
+ /* hsr_node_table_open - Open the node_table file
56
56
*
57
57
* Description:
58
58
* This routine opens a debugfs file node_table of specific hsr device
59
59
*/
60
60
static int
61
- hsr_prp_node_table_open (struct inode * inode , struct file * filp )
61
+ hsr_node_table_open (struct inode * inode , struct file * filp )
62
62
{
63
- return single_open (filp , hsr_prp_node_table_show , inode -> i_private );
63
+ return single_open (filp , hsr_node_table_show , inode -> i_private );
64
64
}
65
65
66
- static const struct file_operations hsr_prp_fops = {
66
+ static const struct file_operations hsr_fops = {
67
67
.owner = THIS_MODULE ,
68
- .open = hsr_prp_node_table_open ,
68
+ .open = hsr_node_table_open ,
69
69
.read = seq_read ,
70
70
.llseek = seq_lseek ,
71
71
.release = single_release ,
72
72
};
73
73
74
- /* hsr_prp_debugfs_init - create hsr-prp node_table file for dumping
74
+ /* hsr_debugfs_init - create hsr node_table file for dumping
75
75
* the node table
76
76
*
77
77
* Description:
78
78
* When debugfs is configured this routine sets up the node_table file per
79
- * hsr/prp device for dumping the node_table entries
79
+ * hsr device for dumping the node_table entries
80
80
*/
81
- int hsr_prp_debugfs_init (struct hsr_priv * priv )
81
+ int hsr_debugfs_init (struct hsr_priv * priv )
82
82
{
83
83
int rc = -1 ;
84
84
struct dentry * de = NULL ;
85
85
86
86
de = debugfs_create_dir ("hsr" , NULL );
87
87
if (!de ) {
88
- pr_err ("Cannot create hsr-prp debugfs root\n" );
88
+ pr_err ("Cannot create hsr debugfs root\n" );
89
89
return rc ;
90
90
}
91
91
92
92
priv -> node_tbl_root = de ;
93
93
94
94
de = debugfs_create_file ("node_table" , S_IFREG | 0444 ,
95
95
priv -> node_tbl_root , priv ,
96
- & hsr_prp_fops );
96
+ & hsr_fops );
97
97
if (!de ) {
98
- pr_err ("Cannot create hsr-prp node_table directory\n" );
98
+ pr_err ("Cannot create hsr node_table directory\n" );
99
99
return rc ;
100
100
}
101
101
priv -> node_tbl_file = de ;
@@ -104,14 +104,14 @@ int hsr_prp_debugfs_init(struct hsr_priv *priv)
104
104
return rc ;
105
105
}
106
106
107
- /* hsr_prp_debugfs_term - Tear down debugfs intrastructure
107
+ /* hsr_debugfs_term - Tear down debugfs intrastructure
108
108
*
109
109
* Description:
110
110
* When Debufs is configured this routine removes debugfs file system
111
- * elements that are specific to hsr-prp
111
+ * elements that are specific to hsr
112
112
*/
113
113
void
114
- hsr_prp_debugfs_term (struct hsr_priv * priv )
114
+ hsr_debugfs_term (struct hsr_priv * priv )
115
115
{
116
116
debugfs_remove (priv -> node_tbl_file );
117
117
priv -> node_tbl_file = NULL ;
0 commit comments