mlxsw: spectrum: Pass port argument to module mapping functions
authorIdo Schimmel <idosch@mellanox.com>
Thu, 8 Jun 2017 06:47:45 +0000 (08:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 18:33:41 +0000 (14:33 -0400)
commit2e915e0b68c9213ed16493c8a28aa973d38d0353
tree11945a077af1583d9230a1be4c0f12aceccfc901
parent5b15385964fab67953df706e1448e1a45db92adf
mlxsw: spectrum: Pass port argument to module mapping functions

Previous patch made it unnecessary to map ports to modules before we
allocate their struct. We can now therefore pass the port struct to
these functions, thereby making them consistent with other functions
that operate on ports.

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