OSDN Git Service

of/address: Rework of_pci_range parsing for non-PCI buses
authorRob Herring <robh@kernel.org>
Thu, 6 Feb 2020 14:01:05 +0000 (14:01 +0000)
committerRob Herring <robh@kernel.org>
Fri, 14 Feb 2020 20:25:26 +0000 (14:25 -0600)
commitbc5e522ec47174770a75df0a76d90f9ebb20132e
tree95d68604be1cbe3cc965f8ba62a2c906f55c4f8d
parentc67f3df88ffca45531a12214e8faffbdab1fa422
of/address: Rework of_pci_range parsing for non-PCI buses

The only PCI specific part of of_pci_range_parser_one() is the handling
of the 3rd address cell. Rework it to work on regular 1 and 2 cell
addresses.

Use defines and a union to avoid a treewide renaming of the parsing
helpers and struct.

Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c
include/linux/of_address.h