]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1062035ec56b1b0bd6165480c0e7bd9fa7ca87a5
tree4234662eccbccedb2c57fc966c60df8d28d65cf8
parent315bccf4656e1d5afc222548c5e4d716b55eb6d3
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