mlxsw: core: Move port module events enablement to a separate function
authorVadim Pasternak <vadimp@nvidia.com>
Wed, 13 Apr 2022 15:17:27 +0000 (18:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:06:12 +0000 (11:06 +0100)
commitb244143a085e1e6b9bee83bafe99b4e1fc9ee51e
treebadc53eceafe850a1bf0d25532bdf779ed252e57
parente5b6a5bac8cc12790eccf69e01372e135f9e4af2
mlxsw: core: Move port module events enablement to a separate function

Use a separate function for enablement of port module events such
plug/unplug and temperature threshold crossing. The motivation is to
reuse the function for line cards.

Signed-off-by: Vadim Pasternak <vadimp@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_env.c