rename check_device_state to device_check_state
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 14:08:07 +0000 (16:08 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 14:08:07 +0000 (16:08 +0200)
device.c
device.h
ubus.c

index 23befa3c565be6606d4388cbabebf70caf4621e3..f9ad25aae3d261161b32e4bd84cc8ec26f3a6e77 100644 (file)
--- a/device.c
+++ b/device.c
@@ -167,7 +167,7 @@ void device_release(struct device_user *dep)
        device_broadcast_event(dev, DEV_EVENT_DOWN);
 }
 
-int check_device_state(struct device *dev)
+int device_check_state(struct device *dev)
 {
        if (!dev->type->check_state)
                return 0;
@@ -203,7 +203,7 @@ int device_init(struct device *dev, const struct device_type *type, const char *
        if (ret < 0)
                return ret;
 
-       check_device_state(dev);
+       device_check_state(dev);
 
        return 0;
 }
index 907b9c660684327feb7e39b18f9915795be50826..8ecb9ef7f0e55df8c1c7fe68b91596656b98c089 100644 (file)
--- a/device.h
+++ b/device.h
@@ -122,7 +122,7 @@ void device_remove_user(struct device_user *dep);
 void device_set_present(struct device *dev, bool state);
 int device_claim(struct device_user *dep);
 void device_release(struct device_user *dep);
-int check_device_state(struct device *dev);
+int device_check_state(struct device *dev);
 
 static inline void
 device_free(struct device *dev)
diff --git a/ubus.c b/ubus.c
index d5a7007a08dd47172a517dee68c9ba705fc1ee57..7e2d2ea875876dcd43fd58f28d93b59eb628cc92 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -43,7 +43,7 @@ netifd_handle_device(struct ubus_context *ctx, struct ubus_object *obj,
        if (!add || (tb[DEV_FORCE] && blobmsg_get_u8(tb[DEV_FORCE])))
                device_set_present(dev, add);
        else
-               check_device_state(dev);
+               device_check_state(dev);
 
        return 0;
 }