mlxsw: core: Add bus argument to environment init API
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 19 Apr 2022 14:54:27 +0000 (17:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2022 14:03:21 +0000 (15:03 +0100)
commit7b261af9f641595f2fc2c8fae6cdcffc740b9b9e
tree04884d576f1cf02fb35678b7e2afc92e93f9c941
parentde28976d2650d3cd962035a9fac5eef3c5b1b379
mlxsw: core: Add bus argument to environment init API

Pass bus argument to mlxsw_env_init(). The purpose is to get access to
device handle, which is to be provided to error message in case of line
card activation failure.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-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/core.c
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/core_env.h