]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
powerpc/powernv: Move GET_FIELD/SET_FIELD to vas.h
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 27 Sep 2017 23:24:13 +0000 (20:24 -0300)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 15:07:05 +0000 (11:07 -0400)
commitd799c495873bdf3bb4164e914dedf07b155b9829
tree438af7a71f8afab868d57ed8b55968a920c97677
parent4889c98f0dfb0db4b069dc3f0d1364666faac4ea
powerpc/powernv: Move GET_FIELD/SET_FIELD to vas.h

BugLink: http://bugs.launchpad.net/bugs/1718293
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>
(cherry picked from commit b6622a339e8670a1025d4dd84be473c76dabed33)
Signed-off-by: Gustavo Walbon <gwalbon@linux.vnet.ibm.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/powerpc/include/asm/vas.h
drivers/crypto/nx/nx-842-powernv.c
drivers/crypto/nx/nx-842.h