mlxsw: Do not pass around driver_priv directly
authorJiri Pirko <jiri@mellanox.com>
Fri, 8 Apr 2016 17:11:23 +0000 (19:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 19:38:42 +0000 (15:38 -0400)
commitb2f10571b96414986f7293b06847d202f2d1d0ca
tree300bf046d1618548ade37fa664027a80f50c1858
parent307c2431abf0974996356c13b67432f4b35e5f2f
mlxsw: Do not pass around driver_priv directly

Instead of that, pass mlxsw_core and use a helper to get driver priv
from driver code. Looks much cleaner that way.

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