mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:43:09 +02:00
backfire: gneric: fix LED control on the RTL8366 switches (backport of r22656)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22657 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7e75db4b87
commit
62bfeaf688
@ -906,7 +906,7 @@ static int rtl8366rb_sw_set_port_led(struct switch_dev *dev,
|
|||||||
data = val->value.i << (val->port_vlan * 4);
|
data = val->value.i << (val->port_vlan * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rtl8366_smi_rmwr(smi, RTL8366RB_LED_BLINKRATE_REG, mask, data);
|
return rtl8366_smi_rmwr(smi, reg, mask, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtl8366rb_sw_get_port_led(struct switch_dev *dev,
|
static int rtl8366rb_sw_get_port_led(struct switch_dev *dev,
|
||||||
|
@ -893,7 +893,7 @@ static int rtl8366s_sw_set_port_led(struct switch_dev *dev,
|
|||||||
data = val->value.i << (val->port_vlan * 4);
|
data = val->value.i << (val->port_vlan * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rtl8366_smi_rmwr(smi, RTL8366S_LED_BLINKRATE_REG, mask, data);
|
return rtl8366_smi_rmwr(smi, reg, mask, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtl8366s_sw_get_port_led(struct switch_dev *dev,
|
static int rtl8366s_sw_get_port_led(struct switch_dev *dev,
|
||||||
|
Loading…
Reference in New Issue
Block a user