1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-11 21:50:15 +02:00

generic: fix LED control on the RTL8366 switches

* patch from #7713

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22656 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2010-08-15 06:47:42 +00:00
parent c55e5c2c25
commit fbab069d3f
2 changed files with 2 additions and 2 deletions

View File

@ -762,7 +762,7 @@ static int rtl8366rb_sw_set_port_led(struct switch_dev *dev,
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,

View File

@ -788,7 +788,7 @@ static int rtl8366s_sw_set_port_led(struct switch_dev *dev,
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,