mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
generic: fix LED control on the RTL8366 switches
* patch from #7713 SVN-Revision: 22656
This commit is contained in:
parent
670b736005
commit
e01649c7cc
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user