of: Merge of_get_address() and of_get_pci_address() implementations
authorRob Herring <robh@kernel.org>
Thu, 27 May 2021 19:45:45 +0000 (14:45 -0500)
committerRob Herring <robh@kernel.org>
Thu, 3 Jun 2021 01:59:28 +0000 (20:59 -0500)
commit050a2c62dfc7d9ef457405f6ab4b715e9a2e32d7
tree6616469201bc92d81706a757a1f4fe22b43ddc62
parent00dcc7cf1a49f93efaa281cc85c88005995ecf63
of: Merge of_get_address() and of_get_pci_address() implementations

of_get_address() and of_get_pci_address() are the same implementation
except of_get_pci_address() takes the PCI BAR number rather than an
index. Modify the of_get_address() implementation to work on either
index or BAR and provide wrapper functions for the existing functions.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210527194547.1287934-3-robh@kernel.org
drivers/of/address.c
include/linux/of_address.h