iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 6 Nov 2019 02:35:48 +0000 (11:35 +0900)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Nov 2019 14:06:20 +0000 (15:06 +0100)
commit3dc28d9f59eaae41461542b27afe70339347ebb3
tree4d26e759c1385cb54c7087681596901856c6ad11
parent16d9454f5e0447f9c19cbf350b35ed377b9f64eb
iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro

Since we will have changed memory mapping of the IPMMU in the future,
this patch uses ipmmu_features values instead of a macro to
calculate context registers offset. No behavior change.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c