Skip to content

Commit 42d9972

Browse files
committed
PCI: of_property: Rename struct of_pci_range to of_pci_range_entry
Previously there were two definitions of struct of_pci_range: one in include/linux/of_address.h and another local to drivers/pci/of_property.c. Rename the local struct of_pci_range to of_pci_range_entry to avoid confusion. Link: https://lore.kernel.org/r/20250117161037.643953-1-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
1 parent d117b19 commit 42d9972

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/of_property.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct of_pci_addr_pair {
2626
* side and the child address is the corresponding address on the secondary
2727
* side.
2828
*/
29-
struct of_pci_range {
29+
struct of_pci_range_entry {
3030
u32 child_addr[OF_PCI_ADDRESS_CELLS];
3131
u32 parent_addr[OF_PCI_ADDRESS_CELLS];
3232
u32 size[OF_PCI_SIZE_CELLS];
@@ -101,7 +101,7 @@ static int of_pci_prop_bus_range(struct pci_dev *pdev,
101101
static int of_pci_prop_ranges(struct pci_dev *pdev, struct of_changeset *ocs,
102102
struct device_node *np)
103103
{
104-
struct of_pci_range *rp;
104+
struct of_pci_range_entry *rp;
105105
struct resource *res;
106106
int i, j, ret;
107107
u32 flags, num;

0 commit comments

Comments
 (0)