crypto: ccp - Refactor the storage block allocation code
authorGary R Hook <gary.hook@amd.com>
Wed, 27 Jul 2016 00:09:50 +0000 (19:09 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:08 +0000 (18:47 +0800)
commit58a690b701efc32ffd49722dd7b887154eb5a205
tree5a0e0da14823062167cc9893abd37f424de94e2a
parent956ee21a6df08afd9c1c64e0f394a9a1b65e897d
crypto: ccp - Refactor the storage block allocation code

Move the KSB access/management functions to the v3
device file, and add function pointers to the actions
structure. At the operations layer all of the references
to the storage block will be generic (virtual). This is
in preparation for a version 5 device, in which the
private storage block is managed differently.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v3.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-ops.c