of/pci: Add of_pci_dma_range_parser_init() for dma-ranges parsing support
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Tue, 26 Sep 2017 10:22:54 +0000 (12:22 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Oct 2017 20:52:34 +0000 (15:52 -0500)
commita060c2104ef83e62346b7e893947a940471c0d7c
treec029535eda482d732c3295188545691db805909c
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
of/pci: Add of_pci_dma_range_parser_init() for dma-ranges parsing support

Several host bridge drivers duplicate of_pci_range_parser_init() in order
to parse their dma-ranges property.

Provide of_pci_dma_range_parser_init() for that use case.

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/of/address.c
include/linux/of_address.h