summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-18 18:18:24 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-18 18:18:24 +0200
commit39b97d17479a1767fefdf693bb41141260d9740c (patch)
tree5485a8231ddc0d3379d0f6e0464f31b1d8ff144c /device.h
parentf876254b373a883499a3b15733e26c777d6f3665 (diff)
directly pass the device name to the device create function
Diffstat (limited to 'device.h')
-rw-r--r--device.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/device.h b/device.h
index 659bcf1..8d610c9 100644
--- a/device.h
+++ b/device.h
@@ -11,7 +11,6 @@ typedef int (*device_state_cb)(struct device *, bool up);
enum {
DEV_ATTR_TYPE,
- DEV_ATTR_NAME,
DEV_ATTR_IFNAME,
DEV_ATTR_MTU,
DEV_ATTR_MACADDR,
@@ -31,7 +30,7 @@ struct device_type {
const struct config_param_list *config_params;
- struct device *(*create)(struct blob_attr *attr);
+ struct device *(*create)(const char *name, struct blob_attr *attr);
void (*config_init)(struct device *);
enum dev_change_type (*reload)(struct device *, struct blob_attr *);
void (*dump_info)(struct device *, struct blob_buf *buf);