diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-18 18:18:24 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-18 18:18:24 +0200 |
commit | 39b97d17479a1767fefdf693bb41141260d9740c (patch) | |
tree | 5485a8231ddc0d3379d0f6e0464f31b1d8ff144c /device.h | |
parent | f876254b373a883499a3b15733e26c777d6f3665 (diff) |
directly pass the device name to the device create function
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |