diff options
author | Arınç ÜNAL <arinc.unal@arinc9.com> | 2024-04-22 10:15:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-24 11:57:03 +0100 |
commit | 318c1944710a90ab8734aa2d87472e2bc3f98677 (patch) | |
tree | 16bf4476286a97c232b515aab87b9b7274852e90 /drivers/net/ethernet/intel/ice/ice_main.c | |
parent | aa16e1fc9ea808130ecf72bd6fac2ad481002ffb (diff) | |
download | linux-318c1944710a90ab8734aa2d87472e2bc3f98677.tar.gz linux-318c1944710a90ab8734aa2d87472e2bc3f98677.tar.bz2 linux-318c1944710a90ab8734aa2d87472e2bc3f98677.zip |
net: dsa: mt7530: use priv->ds->num_ports instead of MT7530_NUM_PORTS
Use priv->ds->num_ports on all for loops which configure the switch
registers. In the future, the value of MT7530_NUM_PORTS will depend on
priv->id. Therefore, this change prepares the subdriver for a simpler
implementation.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions