mlxsw: spectrum: Replace port_to_module array with array of structs
authorJiri Pirko <jiri@mellanox.com>
Thu, 31 Oct 2019 09:42:11 +0000 (11:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 17:54:47 +0000 (10:54 -0700)
commit4a7f970f1240523b1bbabac88811e429de4697cb
tree6b3258baafc2fa9db9248d6ec2789d9ed01d18bb
parent26a6befa5df79dddb1a1c464b5758de9d618ee23
mlxsw: spectrum: Replace port_to_module array with array of structs

Store the initial PMLP register configuration into array of structures
instead of just simple array of module numbers.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h