]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fa8046697900e0b2fde3bc132a542f12ffdcf95
tree6b3258baafc2fa9db9248d6ec2789d9ed01d18bb
parent17d28c0d840ea08679a3f25e9a7af637feffb08c
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