aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_sysfs.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-03 16:19:18 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:18 -0400
commitcd646ab1e2edde9faeff52bbc1b40e58a5e381fc (patch)
tree7608bcfc6054333d482d83a5d77276b6ee2a182a /net/batman-adv/bat_sysfs.c
parenta59a4d1921664da63d801ba477950114c71c88c9 (diff)
batman-adv: Prefix gateway enum with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bat_sysfs.c')
-rw-r--r--net/batman-adv/bat_sysfs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index 95d80d1808f2..561ec31fdfb9 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -360,11 +360,11 @@ static ssize_t batadv_show_gw_mode(struct kobject *kobj, struct attribute *attr,
360 int bytes_written; 360 int bytes_written;
361 361
362 switch (atomic_read(&bat_priv->gw_mode)) { 362 switch (atomic_read(&bat_priv->gw_mode)) {
363 case GW_MODE_CLIENT: 363 case BATADV_GW_MODE_CLIENT:
364 bytes_written = sprintf(buff, "%s\n", 364 bytes_written = sprintf(buff, "%s\n",
365 BATADV_GW_MODE_CLIENT_NAME); 365 BATADV_GW_MODE_CLIENT_NAME);
366 break; 366 break;
367 case GW_MODE_SERVER: 367 case BATADV_GW_MODE_SERVER:
368 bytes_written = sprintf(buff, "%s\n", 368 bytes_written = sprintf(buff, "%s\n",
369 BATADV_GW_MODE_SERVER_NAME); 369 BATADV_GW_MODE_SERVER_NAME);
370 break; 370 break;
@@ -391,15 +391,15 @@ static ssize_t batadv_store_gw_mode(struct kobject *kobj,
391 391
392 if (strncmp(buff, BATADV_GW_MODE_OFF_NAME, 392 if (strncmp(buff, BATADV_GW_MODE_OFF_NAME,
393 strlen(BATADV_GW_MODE_OFF_NAME)) == 0) 393 strlen(BATADV_GW_MODE_OFF_NAME)) == 0)
394 gw_mode_tmp = GW_MODE_OFF; 394 gw_mode_tmp = BATADV_GW_MODE_OFF;
395 395
396 if (strncmp(buff, BATADV_GW_MODE_CLIENT_NAME, 396 if (strncmp(buff, BATADV_GW_MODE_CLIENT_NAME,
397 strlen(BATADV_GW_MODE_CLIENT_NAME)) == 0) 397 strlen(BATADV_GW_MODE_CLIENT_NAME)) == 0)
398 gw_mode_tmp = GW_MODE_CLIENT; 398 gw_mode_tmp = BATADV_GW_MODE_CLIENT;
399 399
400 if (strncmp(buff, BATADV_GW_MODE_SERVER_NAME, 400 if (strncmp(buff, BATADV_GW_MODE_SERVER_NAME,
401 strlen(BATADV_GW_MODE_SERVER_NAME)) == 0) 401 strlen(BATADV_GW_MODE_SERVER_NAME)) == 0)
402 gw_mode_tmp = GW_MODE_SERVER; 402 gw_mode_tmp = BATADV_GW_MODE_SERVER;
403 403
404 if (gw_mode_tmp < 0) { 404 if (gw_mode_tmp < 0) {
405 batadv_info(net_dev, 405 batadv_info(net_dev,
@@ -412,10 +412,10 @@ static ssize_t batadv_store_gw_mode(struct kobject *kobj,
412 return count; 412 return count;
413 413
414 switch (atomic_read(&bat_priv->gw_mode)) { 414 switch (atomic_read(&bat_priv->gw_mode)) {
415 case GW_MODE_CLIENT: 415 case BATADV_GW_MODE_CLIENT:
416 curr_gw_mode_str = BATADV_GW_MODE_CLIENT_NAME; 416 curr_gw_mode_str = BATADV_GW_MODE_CLIENT_NAME;
417 break; 417 break;
418 case GW_MODE_SERVER: 418 case BATADV_GW_MODE_SERVER:
419 curr_gw_mode_str = BATADV_GW_MODE_SERVER_NAME; 419 curr_gw_mode_str = BATADV_GW_MODE_SERVER_NAME;
420 break; 420 break;
421 default: 421 default: