Explorar o código

s/add_device_user/device_add_user/

Felix Fietkau %!s(int64=13) %!d(string=hai) anos
pai
achega
8c7ee05281
Modificáronse 5 ficheiros con 7 adicións e 7 borrados
  1. 2 2
      bridge.c
  2. 1 1
      device.c
  3. 1 1
      device.h
  4. 2 2
      interface.c
  5. 1 1
      vlan.c

+ 2 - 2
bridge.c

@@ -169,7 +169,7 @@ bridge_create_member(struct bridge_state *bst, struct device *dev)
 	bm = calloc(1, sizeof(*bm));
 	bm->bst = bst;
 	bm->dev.cb = bridge_member_cb;
-	add_device_user(&bm->dev, dev);
+	device_add_user(&bm->dev, dev);
 
 	list_add(&bm->list, &bst->members);
 
@@ -357,6 +357,6 @@ interface_attach_bridge(struct interface *iface, struct uci_section *s)
 	if (!dev)
 		return -1;
 
-	add_device_user(&iface->main_dev, dev);
+	device_add_user(&iface->main_dev, dev);
 	return 0;
 }

+ 1 - 1
device.c

@@ -249,7 +249,7 @@ void set_device_present(struct device *dev, bool state)
 	broadcast_device_event(dev, state ? DEV_EVENT_ADD : DEV_EVENT_REMOVE);
 }
 
-void add_device_user(struct device_user *dep, struct device *dev)
+void device_add_user(struct device_user *dep, struct device *dev)
 {
 	dep->dev = dev;
 	list_add(&dep->list, &dev->users);

+ 1 - 1
device.h

@@ -133,7 +133,7 @@ void init_virtual_device(struct device *dev, const struct device_type *type, con
 int init_device(struct device *iface, const struct device_type *type, const char *ifname);
 void cleanup_device(struct device *iface);
 struct device *get_device(const char *name, bool create);
-void add_device_user(struct device_user *dep, struct device *iface);
+void device_add_user(struct device_user *dep, struct device *iface);
 void device_remove_user(struct device_user *dep);
 
 void set_device_present(struct device *dev, bool state);

+ 2 - 2
interface.c

@@ -238,7 +238,7 @@ alloc_interface(const char *name, struct uci_section *s, struct blob_attr *attr)
 	if ((cur = tb[IFACE_ATTR_IFNAME])) {
 		dev = get_device(blobmsg_data(cur), true);
 		if (dev)
-			add_device_user(&iface->main_dev, dev);
+			device_add_user(&iface->main_dev, dev);
 	}
 
 	return iface;
@@ -290,7 +290,7 @@ interface_add_link(struct interface *iface, struct device *dev)
 	if (iface->main_dev.dev)
 		interface_remove_link(iface, NULL);
 
-	add_device_user(&iface->main_dev, dev);
+	device_add_user(&iface->main_dev, dev);
 
 	return 0;
 }

+ 1 - 1
vlan.c

@@ -100,7 +100,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create)
 	vldev->id = id;
 
 	vldev->dep.cb = vlan_dev_cb;
-	add_device_user(&vldev->dep, dev);
+	device_add_user(&vldev->dep, dev);
 
 	return &vldev->dev;
 }