OSDN Git Service

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)
commitb6622a339e8670a1025d4dd84be473c76dabed33
tree01494601391163cb2279753f4c51be6ad55e3835
parent967689141eb37c4365eac0fac82d857773098475
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