mlxsw: core: Move resource query API to common location
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 3 Mar 2019 09:12:11 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:23:00 +0000 (22:23 -0800)
commite5ba7803baea3dda36251ed2e2f55b884b0e18fa
tree4234662eccbccedb2c57fc966c60df8d28d65cf8
parentc100e47caa8efe818f92c55f50933632f0af0e93
mlxsw: core: Move resource query API to common location

Move mlxsw_pci_resources_query() to a common location to allow reuse by
the different drivers and over all the supported physical buses. Rename
it to mlxsw_core_resources_query().

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.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/pci.c