diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 19:33:27 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 19:33:27 +0200 |
commit | b45b4104d5d3db94254328cb0ed128d22835aa15 (patch) | |
tree | 6da2575f3fe58e86858bcaaa79fd70375de06fa1 /device.c | |
parent | 3db9dd617eca048fe2660fa63f95651c7a4c2da5 (diff) |
s/broadcast_device_event/device_broadcast_event/
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -102,7 +102,7 @@ static void free_simple_device(struct device *dev) free(dev); } -static void broadcast_device_event(struct device *dev, enum device_event ev) +static void device_broadcast_event(struct device *dev, enum device_event ev) { struct device_user *dep, *tmp; @@ -132,10 +132,10 @@ int device_claim(struct device *dev) if (++dev->active != 1) return 0; - broadcast_device_event(dev, DEV_EVENT_SETUP); + device_broadcast_event(dev, DEV_EVENT_SETUP); ret = dev->set_state(dev, true); if (ret == 0) - broadcast_device_event(dev, DEV_EVENT_UP); + device_broadcast_event(dev, DEV_EVENT_UP); else dev->active = 0; @@ -151,9 +151,9 @@ void device_release(struct device *dev) if (dev->active) return; - broadcast_device_event(dev, DEV_EVENT_TEARDOWN); + device_broadcast_event(dev, DEV_EVENT_TEARDOWN); dev->set_state(dev, false); - broadcast_device_event(dev, DEV_EVENT_DOWN); + device_broadcast_event(dev, DEV_EVENT_DOWN); } int check_device_state(struct device *dev) @@ -246,7 +246,7 @@ void device_set_present(struct device *dev, bool state) DPRINTF("Device '%s' %s present\n", dev->ifname, state ? "is now" : "is no longer" ); dev->present = state; - broadcast_device_event(dev, state ? DEV_EVENT_ADD : DEV_EVENT_REMOVE); + device_broadcast_event(dev, state ? DEV_EVENT_ADD : DEV_EVENT_REMOVE); } void device_add_user(struct device_user *dep, struct device *dev) |