]> git.ipfire.org Git - thirdparty/linux.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)
commit1b1c6c1a3802bf9e7a698d359771e29897c369e5
tree0dbbc5e146d98a1ccb6b8e7d35772079d372038a
parenta9836336dddf08ec5d56c0a375558e7f30c4eb3d
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