mlxsw: spectrum: Allocate port mapping array of structs instead of pointers
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:30 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commitd3ad2d88209ff8c4ec6fbcf21be7f85104767cdd
tree92705bd9fd4bc3eded8611135a6ed95fa610f692
parentbac62191a3d4dddc4dbfddb4187d4952380c29c7
mlxsw: spectrum: Allocate port mapping array of structs instead of pointers

Instead of array of pointers to port mapping structures, allocate the
array of structures directly.

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