diff options
Diffstat (limited to 'net/batman-adv/bat_sysfs.c')
-rw-r--r-- | net/batman-adv/bat_sysfs.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c index 5a7b042873e1..8196fa6ff22e 100644 --- a/net/batman-adv/bat_sysfs.c +++ b/net/batman-adv/bat_sysfs.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* | 1 | /* Copyright (C) 2010-2012 B.A.T.M.A.N. contributors: |
2 | * Copyright (C) 2010-2012 B.A.T.M.A.N. contributors: | ||
3 | * | 2 | * |
4 | * Marek Lindner | 3 | * Marek Lindner |
5 | * | 4 | * |
@@ -16,7 +15,6 @@ | |||
16 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software |
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
18 | * 02110-1301, USA | 17 | * 02110-1301, USA |
19 | * | ||
20 | */ | 18 | */ |
21 | 19 | ||
22 | #include "main.h" | 20 | #include "main.h" |
@@ -84,7 +82,8 @@ ssize_t show_##_name(struct kobject *kobj, \ | |||
84 | } \ | 82 | } \ |
85 | 83 | ||
86 | /* Use this, if you are going to turn a [name] in the soft-interface | 84 | /* Use this, if you are going to turn a [name] in the soft-interface |
87 | * (bat_priv) on or off */ | 85 | * (bat_priv) on or off |
86 | */ | ||
88 | #define BAT_ATTR_SIF_BOOL(_name, _mode, _post_func) \ | 87 | #define BAT_ATTR_SIF_BOOL(_name, _mode, _post_func) \ |
89 | static BAT_ATTR_SIF_STORE_BOOL(_name, _post_func) \ | 88 | static BAT_ATTR_SIF_STORE_BOOL(_name, _post_func) \ |
90 | static BAT_ATTR_SIF_SHOW_BOOL(_name) \ | 89 | static BAT_ATTR_SIF_SHOW_BOOL(_name) \ |
@@ -110,7 +109,8 @@ ssize_t show_##_name(struct kobject *kobj, \ | |||
110 | } \ | 109 | } \ |
111 | 110 | ||
112 | /* Use this, if you are going to set [name] in the soft-interface | 111 | /* Use this, if you are going to set [name] in the soft-interface |
113 | * (bat_priv) to an unsigned integer value */ | 112 | * (bat_priv) to an unsigned integer value |
113 | */ | ||
114 | #define BAT_ATTR_SIF_UINT(_name, _mode, _min, _max, _post_func) \ | 114 | #define BAT_ATTR_SIF_UINT(_name, _mode, _min, _max, _post_func) \ |
115 | static BAT_ATTR_SIF_STORE_UINT(_name, _min, _max, _post_func) \ | 115 | static BAT_ATTR_SIF_STORE_UINT(_name, _min, _max, _post_func) \ |
116 | static BAT_ATTR_SIF_SHOW_UINT(_name) \ | 116 | static BAT_ATTR_SIF_SHOW_UINT(_name) \ |
@@ -155,7 +155,8 @@ ssize_t show_##_name(struct kobject *kobj, \ | |||
155 | } | 155 | } |
156 | 156 | ||
157 | /* Use this, if you are going to set [name] in hard_iface to an | 157 | /* Use this, if you are going to set [name] in hard_iface to an |
158 | * unsigned integer value*/ | 158 | * unsigned integer value |
159 | */ | ||
159 | #define BAT_ATTR_HIF_UINT(_name, _mode, _min, _max, _post_func) \ | 160 | #define BAT_ATTR_HIF_UINT(_name, _mode, _min, _max, _post_func) \ |
160 | static BAT_ATTR_HIF_STORE_UINT(_name, _min, _max, _post_func) \ | 161 | static BAT_ATTR_HIF_STORE_UINT(_name, _min, _max, _post_func) \ |
161 | static BAT_ATTR_HIF_SHOW_UINT(_name) \ | 162 | static BAT_ATTR_HIF_SHOW_UINT(_name) \ |