diff options
-rw-r--r-- | bridge.c | 4 | ||||
-rw-r--r-- | device.c | 2 | ||||
-rw-r--r-- | device.h | 2 | ||||
-rw-r--r-- | interface.c | 4 | ||||
-rw-r--r-- | vlan.c | 2 |
5 files changed, 7 insertions, 7 deletions
@@ -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; } @@ -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); @@ -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); diff --git a/interface.c b/interface.c index 9fa3799..95ee8ea 100644 --- a/interface.c +++ b/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; } @@ -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; } |