Signed-off-by: Antonios Vamporakis <ant@area128.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39589
3c298f89-4303-0410-b956-
a3cf2f4a3e73
-rtl_reset(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+rtl_reset(struct switch_dev *dev)
{
rtl_hw_init(dev);
return 0;
{
rtl_hw_init(dev);
return 0;
}
static struct switch_attr rtl_globals[] = {
}
static struct switch_attr rtl_globals[] = {
- {
- .type = SWITCH_TYPE_INT,
- .name = "reset",
- .description = "Reset the switch",
- .set = rtl_reset,
- },
{
.type = SWITCH_TYPE_INT,
.name = "enable_vlan",
{
.type = SWITCH_TYPE_INT,
.name = "enable_vlan",
.get_vlan_ports = rtl_get_ports,
.set_vlan_ports = rtl_set_ports,
.apply_config = rtl_hw_apply,
.get_vlan_ports = rtl_get_ports,
.set_vlan_ports = rtl_set_ports,
.apply_config = rtl_hw_apply,
+ .reset_switch = rtl_reset,