aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/gianfar_sysfs.c')
-rw-r--r--drivers/net/gianfar_sysfs.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/net/gianfar_sysfs.c b/drivers/net/gianfar_sysfs.c
index 782c20170082..74e0b4d42587 100644
--- a/drivers/net/gianfar_sysfs.c
+++ b/drivers/net/gianfar_sysfs.c
@@ -81,7 +81,7 @@ static ssize_t gfar_set_bd_stash(struct device *dev,
81 return count; 81 return count;
82} 82}
83 83
84DEVICE_ATTR(bd_stash, 0644, gfar_show_bd_stash, gfar_set_bd_stash); 84static DEVICE_ATTR(bd_stash, 0644, gfar_show_bd_stash, gfar_set_bd_stash);
85 85
86static ssize_t gfar_show_rx_stash_size(struct device *dev, 86static ssize_t gfar_show_rx_stash_size(struct device *dev,
87 struct device_attribute *attr, char *buf) 87 struct device_attribute *attr, char *buf)
@@ -130,8 +130,8 @@ out:
130 return count; 130 return count;
131} 131}
132 132
133DEVICE_ATTR(rx_stash_size, 0644, gfar_show_rx_stash_size, 133static DEVICE_ATTR(rx_stash_size, 0644, gfar_show_rx_stash_size,
134 gfar_set_rx_stash_size); 134 gfar_set_rx_stash_size);
135 135
136/* Stashing will only be enabled when rx_stash_size != 0 */ 136/* Stashing will only be enabled when rx_stash_size != 0 */
137static ssize_t gfar_show_rx_stash_index(struct device *dev, 137static ssize_t gfar_show_rx_stash_index(struct device *dev,
@@ -172,8 +172,8 @@ out:
172 return count; 172 return count;
173} 173}
174 174
175DEVICE_ATTR(rx_stash_index, 0644, gfar_show_rx_stash_index, 175static DEVICE_ATTR(rx_stash_index, 0644, gfar_show_rx_stash_index,
176 gfar_set_rx_stash_index); 176 gfar_set_rx_stash_index);
177 177
178static ssize_t gfar_show_fifo_threshold(struct device *dev, 178static ssize_t gfar_show_fifo_threshold(struct device *dev,
179 struct device_attribute *attr, 179 struct device_attribute *attr,
@@ -210,8 +210,8 @@ static ssize_t gfar_set_fifo_threshold(struct device *dev,
210 return count; 210 return count;
211} 211}
212 212
213DEVICE_ATTR(fifo_threshold, 0644, gfar_show_fifo_threshold, 213static DEVICE_ATTR(fifo_threshold, 0644, gfar_show_fifo_threshold,
214 gfar_set_fifo_threshold); 214 gfar_set_fifo_threshold);
215 215
216static ssize_t gfar_show_fifo_starve(struct device *dev, 216static ssize_t gfar_show_fifo_starve(struct device *dev,
217 struct device_attribute *attr, char *buf) 217 struct device_attribute *attr, char *buf)
@@ -247,7 +247,8 @@ static ssize_t gfar_set_fifo_starve(struct device *dev,
247 return count; 247 return count;
248} 248}
249 249
250DEVICE_ATTR(fifo_starve, 0644, gfar_show_fifo_starve, gfar_set_fifo_starve); 250static DEVICE_ATTR(fifo_starve, 0644, gfar_show_fifo_starve,
251 gfar_set_fifo_starve);
251 252
252static ssize_t gfar_show_fifo_starve_off(struct device *dev, 253static ssize_t gfar_show_fifo_starve_off(struct device *dev,
253 struct device_attribute *attr, 254 struct device_attribute *attr,
@@ -284,8 +285,8 @@ static ssize_t gfar_set_fifo_starve_off(struct device *dev,
284 return count; 285 return count;
285} 286}
286 287
287DEVICE_ATTR(fifo_starve_off, 0644, gfar_show_fifo_starve_off, 288static DEVICE_ATTR(fifo_starve_off, 0644, gfar_show_fifo_starve_off,
288 gfar_set_fifo_starve_off); 289 gfar_set_fifo_starve_off);
289 290
290void gfar_init_sysfs(struct net_device *dev) 291void gfar_init_sysfs(struct net_device *dev)
291{ 292{