]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Move GET_FIELD/SET_FIELD to vas.h
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Tue, 29 Aug 2017 06:23:32 +0000 (23:23 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:20 +0000 (14:26 +1000)
commit36c7fea643caaff47ef0222ac14a3ac6f62006cd
tree01494601391163cb2279753f4c51be6ad55e3835
parente6c12415885e0aed9dfd9d3d76a2cb9960e1bbcf
powerpc/powernv: Move GET_FIELD/SET_FIELD to vas.h

Move the GET_FIELD and SET_FIELD macros to vas.h as VAS and other
users of VAS, including NX-842 can use those macros.

There is a lot of related code between the VAS/NX kernel drivers
and skiboot. For consistency, switch the order of parameters in
SET_FIELD to match the order in skiboot.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Reviewed-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/vas.h
drivers/crypto/nx/nx-842-powernv.c
drivers/crypto/nx/nx-842.h