]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd75c779f186fb9fd1b3d86e9dcb22b5c17dfcce3
tree11945a077af1583d9230a1be4c0f12aceccfc901
parent95826e77b771b6797f2ea37ae472785a3e81dcf2
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