s/set_device_present/device_set_present/
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:24:47 +0000 (19:24 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:24:47 +0000 (19:24 +0200)
bridge.c
device.c
device.h
system-dummy.c
ubus.c
vlan.c

index 6dca6e3c91fa4c2a07ecd7e23e37721f6760456e..aff41fbb16524f42429deb7a6fc1abea628cbab2 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -81,7 +81,7 @@ bridge_member_cb(struct device_user *dev, enum device_event ev)
                if (bst->dev.active)
                        bridge_enable_member(bm);
                else if (bst->n_present == 1)
-                       set_device_present(&bst->dev, true);
+                       device_set_present(&bst->dev, true);
 
                break;
        case DEV_EVENT_REMOVE:
@@ -94,7 +94,7 @@ bridge_member_cb(struct device_user *dev, enum device_event ev)
                bm->present = false;
                bm->bst->n_present--;
                if (bst->n_present == 0)
-                       set_device_present(&bst->dev, false);
+                       device_set_present(&bst->dev, false);
 
                break;
        default:
@@ -136,7 +136,7 @@ bridge_set_up(struct bridge_state *bst)
        if (!bst->n_present) {
                /* initialization of all member interfaces failed */
                system_bridge_delbr(&bst->dev);
-               set_device_present(&bst->dev, false);
+               device_set_present(&bst->dev, false);
                return -ENOENT;
        }
 
index 88b2cd0bfe3c2834b5eca24122862ff067748115..61b50bc8b24bdb060a63c6f4e4bfc2dd1bab3fec 100644 (file)
--- a/device.c
+++ b/device.c
@@ -239,7 +239,7 @@ void cleanup_device(struct device *dev)
                avl_delete(&devices, &dev->avl);
 }
 
-void set_device_present(struct device *dev, bool state)
+void device_set_present(struct device *dev, bool state)
 {
        if (dev->present == state)
                return;
index dd2b5edf35abc4e759530ed02894fee473980827..dd7e1148590a6c66be7a3617fa13cb18144c94fa 100644 (file)
--- a/device.h
+++ b/device.h
@@ -136,7 +136,7 @@ struct device *get_device(const char *name, bool create);
 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);
+void device_set_present(struct device *dev, bool state);
 int claim_device(struct device *dev);
 void release_device(struct device *dev);
 int check_device_state(struct device *dev);
index f24f686925a113abdc042dbd9c0cc11ba5e85185..80f1734d1e0bd4870cf1bf02a29b188b2baf0000 100644 (file)
@@ -57,7 +57,7 @@ int system_if_check(struct device *dev)
        dev->ifindex = 0;
 
        if (!strcmp(dev->ifname, "eth0"))
-               set_device_present(dev, true);
+               device_set_present(dev, true);
 
        return 0;
 }
diff --git a/ubus.c b/ubus.c
index 72cf0e54737f8ff972cc9bf4f1448da63ee6192e..2e98b2b116267cdeab88fb1e835e951ca22e2ec9 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -38,7 +38,7 @@ static int netifd_handle_device(struct ubus_context *ctx, struct ubus_object *ob
                return UBUS_STATUS_NOT_FOUND;
 
        if (!add || (tb[DEV_FORCE] && blobmsg_get_u8(tb[DEV_FORCE])))
-               set_device_present(dev, add);
+               device_set_present(dev, add);
        else
                check_device_state(dev);
 
diff --git a/vlan.c b/vlan.c
index b906cd5fa9dbe65fdcc8e747dcc5bfe910f7975c..ce9d2d7a8e9dfc7234d0355b6e5107fd25cc43f6 100644 (file)
--- a/vlan.c
+++ b/vlan.c
@@ -55,10 +55,10 @@ static void vlan_dev_cb(struct device_user *dep, enum device_event ev)
        vldev = container_of(dep, struct vlan_device, dep);
        switch(ev) {
        case DEV_EVENT_ADD:
-               set_device_present(&vldev->dev, true);
+               device_set_present(&vldev->dev, true);
                break;
        case DEV_EVENT_REMOVE:
-               set_device_present(&vldev->dev, false);
+               device_set_present(&vldev->dev, false);
                break;
        default:
                break;