KVM: arm64: Use the reg_to_encoding() macro instead of sys_reg()
authorAlexandru Elisei <alexandru.elisei@arm.com>
Wed, 6 Jan 2021 14:42:18 +0000 (14:42 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 14 Jan 2021 11:09:38 +0000 (11:09 +0000)
commit7ba8b4380afbdbb29d53c50bee6563cd7457fc34
tree67a61e8d0d2695a1fa63dba9b2c1fa3116315225
parent2c91ef39216149df6703c3fa6a47dd9a1e6091c1
KVM: arm64: Use the reg_to_encoding() macro instead of sys_reg()

The reg_to_encoding() macro is a wrapper over sys_reg() and conveniently
takes a sys_reg_desc or a sys_reg_params argument and returns the 32 bit
register encoding. Use it instead of calling sys_reg() directly.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210106144218.110665-1-alexandru.elisei@arm.com
arch/arm64/kvm/sys_regs.c