iommu/io-pgtable: Make io_pgtable_ops_to_pgtable() macro common
authorRobin Murphy <robin.murphy@arm.com>
Fri, 4 Dec 2015 17:53:01 +0000 (17:53 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 17 Dec 2015 12:05:35 +0000 (12:05 +0000)
commitfdc38967633ec23b3b24dfc487dfb7b90d1a0215
tree1a4426c067fe5f9fb275573e2a1a7863864487f2
parent75df1386557c25188bd2383bbe8dd14a5ac81c06
iommu/io-pgtable: Make io_pgtable_ops_to_pgtable() macro common

There is no need to keep a useful accessor for a public structure hidden
away in a private implementation. Move it out alongside the structure
definition so that other implementations may reuse it.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/io-pgtable-arm.c
drivers/iommu/io-pgtable.h