]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Move ethtool module callbacks to a common location
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 3 Mar 2019 09:12:08 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:23:00 +0000 (22:23 -0800)
commit9ca363c216704c1239063ec04038f6ae7dbe9e18
tree0dbbc5e146d98a1ccb6b8e7d35772079d372038a
parent2365bb3cd9f6f3cc544cc1a06aa0848e09abb0c3
mlxsw: core: Move ethtool module callbacks to a common location

Move the implementation of ethtool module callbacks - .get_module_info()
and .get_module_eeprom() - to a common location to allow reuse by the
different mlxsw drivers.

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