of/iommu: Make of_map_rid() PCI agnostic
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 19 Jun 2020 08:20:07 +0000 (09:20 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 28 Jul 2020 14:51:31 +0000 (15:51 +0100)
commit746a71d02b5d15817fcb13c956ba999a87773952
tree0a0da26a91d93df26c4451865323102214c2feb2
parentb8e069a2a8da02137605ba585837a3a0c45df01a
of/iommu: Make of_map_rid() PCI agnostic

There is nothing PCI specific (other than the RID - requester ID)
in the of_map_rid() implementation, so the same function can be
reused for input/output IDs mapping for other busses just as well.

Rename the RID instances/names to a generic "id" tag.

No functionality change intended.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Joerg Roedel <jroedel@suse.de>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200619082013.13661-7-lorenzo.pieralisi@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/iommu/of_iommu.c
drivers/of/base.c
drivers/of/irq.c
include/linux/of.h