aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-03 16:19:09 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-28 02:44:55 -0400
commit036cbfeb6e0595d7b85f14dd66e38adfa408e2ef (patch)
tree6b65db3d8333eb92e20062eff6443c69b073ccf7 /net/batman-adv
parent54590e4d4b369c9fc0dcbb3c7f39eb90fbddcbe2 (diff)
batman-adv: Prefix sysfs defines with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bat_sysfs.c14
-rw-r--r--net/batman-adv/bat_sysfs.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index 3862fe18a033..725e7d74f567 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -505,11 +505,11 @@ int batadv_sysfs_add_meshif(struct net_device *dev)
505 struct bat_attribute **bat_attr; 505 struct bat_attribute **bat_attr;
506 int err; 506 int err;
507 507
508 bat_priv->mesh_obj = kobject_create_and_add(SYSFS_IF_MESH_SUBDIR, 508 bat_priv->mesh_obj = kobject_create_and_add(BATADV_SYSFS_IF_MESH_SUBDIR,
509 batif_kobject); 509 batif_kobject);
510 if (!bat_priv->mesh_obj) { 510 if (!bat_priv->mesh_obj) {
511 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", dev->name, 511 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", dev->name,
512 SYSFS_IF_MESH_SUBDIR); 512 BATADV_SYSFS_IF_MESH_SUBDIR);
513 goto out; 513 goto out;
514 } 514 }
515 515
@@ -518,7 +518,7 @@ int batadv_sysfs_add_meshif(struct net_device *dev)
518 &((*bat_attr)->attr)); 518 &((*bat_attr)->attr));
519 if (err) { 519 if (err) {
520 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n", 520 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n",
521 dev->name, SYSFS_IF_MESH_SUBDIR, 521 dev->name, BATADV_SYSFS_IF_MESH_SUBDIR,
522 ((*bat_attr)->attr).name); 522 ((*bat_attr)->attr).name);
523 goto rem_attr; 523 goto rem_attr;
524 } 524 }
@@ -673,12 +673,12 @@ int batadv_sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev)
673 struct bat_attribute **bat_attr; 673 struct bat_attribute **bat_attr;
674 int err; 674 int err;
675 675
676 *hardif_obj = kobject_create_and_add(SYSFS_IF_BAT_SUBDIR, 676 *hardif_obj = kobject_create_and_add(BATADV_SYSFS_IF_BAT_SUBDIR,
677 hardif_kobject); 677 hardif_kobject);
678 678
679 if (!*hardif_obj) { 679 if (!*hardif_obj) {
680 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", dev->name, 680 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", dev->name,
681 SYSFS_IF_BAT_SUBDIR); 681 BATADV_SYSFS_IF_BAT_SUBDIR);
682 goto out; 682 goto out;
683 } 683 }
684 684
@@ -686,7 +686,7 @@ int batadv_sysfs_add_hardif(struct kobject **hardif_obj, struct net_device *dev)
686 err = sysfs_create_file(*hardif_obj, &((*bat_attr)->attr)); 686 err = sysfs_create_file(*hardif_obj, &((*bat_attr)->attr));
687 if (err) { 687 if (err) {
688 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n", 688 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n",
689 dev->name, SYSFS_IF_BAT_SUBDIR, 689 dev->name, BATADV_SYSFS_IF_BAT_SUBDIR,
690 ((*bat_attr)->attr).name); 690 ((*bat_attr)->attr).name);
691 goto rem_attr; 691 goto rem_attr;
692 } 692 }
diff --git a/net/batman-adv/bat_sysfs.h b/net/batman-adv/bat_sysfs.h
index 367227707d52..23a8390851a6 100644
--- a/net/batman-adv/bat_sysfs.h
+++ b/net/batman-adv/bat_sysfs.h
@@ -20,8 +20,8 @@
20#ifndef _NET_BATMAN_ADV_SYSFS_H_ 20#ifndef _NET_BATMAN_ADV_SYSFS_H_
21#define _NET_BATMAN_ADV_SYSFS_H_ 21#define _NET_BATMAN_ADV_SYSFS_H_
22 22
23#define SYSFS_IF_MESH_SUBDIR "mesh" 23#define BATADV_SYSFS_IF_MESH_SUBDIR "mesh"
24#define SYSFS_IF_BAT_SUBDIR "batman_adv" 24#define BATADV_SYSFS_IF_BAT_SUBDIR "batman_adv"
25 25
26struct bat_attribute { 26struct bat_attribute {
27 struct attribute attr; 27 struct attribute attr;