diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-05-01 13:52:55 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-05-03 10:10:14 +0200 |
commit | bc197b2a9c7e0129fa0ec1961881e2a0b3bef967 (patch) | |
tree | bfd8382badf61cb9bff3532a74dc28127c2389ae /drivers/crypto/ccp/ccp-dev.h | |
parent | crypto: marvell/cesa - Use dma_pool_zalloc (diff) | |
download | linux-bc197b2a9c7e0129fa0ec1961881e2a0b3bef967.tar.xz linux-bc197b2a9c7e0129fa0ec1961881e2a0b3bef967.zip |
crypto: ccp - constify ccp_actions structure
The ccp_actions structure is never modified, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Gary Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-dev.h')
-rw-r--r-- | drivers/crypto/ccp/ccp-dev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index 5d986c9d72eb..bd41ffceff82 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -162,7 +162,7 @@ struct ccp_actions { /* Structure to hold CCP version-specific values */ struct ccp_vdata { unsigned int version; - struct ccp_actions *perform; + const struct ccp_actions *perform; }; extern struct ccp_vdata ccpv3; |