[LEDE-DEV] [PATCH 1/2] utils: rename function fw3_hotplug to fw3_hotplug_zone

Florian Eckert fe at dev.tdt.de
Mon Aug 28 00:57:43 PDT 2017


Rename fw3_hotplug function to fw3_hotplug_zone to use fw3_hotlpug for
common hotplug events like start|stop|flush|reload|restart

Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 utils.c | 2 +-
 utils.h | 2 +-
 zones.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils.c b/utils.c
index 024f95e..f855840 100644
--- a/utils.c
+++ b/utils.c
@@ -711,7 +711,7 @@ fw3_free_list(struct list_head *head)
 }
 
 bool
-fw3_hotplug(bool add, void *zone, void *device)
+fw3_hotplug_zone(bool add, void *zone, void *device)
 {
 	struct fw3_zone *z = zone;
 	struct fw3_device *d = device;
diff --git a/utils.h b/utils.h
index 9a716ae..9ad7b91 100644
--- a/utils.h
+++ b/utils.h
@@ -106,7 +106,7 @@ void fw3_free_object(void *obj, const void *opts);
 
 void fw3_free_list(struct list_head *head);
 
-bool fw3_hotplug(bool add, void *zone, void *device);
+bool fw3_hotplug_zone(bool add, void *zone, void *device);
 
 int fw3_netmask2bitlen(int family, void *mask);
 
diff --git a/zones.c b/zones.c
index 2aa7473..0d663be 100644
--- a/zones.c
+++ b/zones.c
@@ -703,7 +703,7 @@ fw3_hotplug_zones(struct fw3_state *state, bool add)
 		if (add != fw3_hasbit(z->flags[0], FW3_FLAG_HOTPLUG))
 		{
 			list_for_each_entry(d, &z->devices, list)
-				fw3_hotplug(add, z, d);
+				fw3_hotplug_zone(add, z, d);
 
 			if (add)
 				fw3_setbit(z->flags[0], FW3_FLAG_HOTPLUG);
-- 
2.11.0




More information about the Lede-dev mailing list