diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-05-01 07:52:55 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-05-03 04:10:14 -0400 |
commit | bc197b2a9c7e0129fa0ec1961881e2a0b3bef967 (patch) | |
tree | bfd8382badf61cb9bff3532a74dc28127c2389ae | |
parent | 472d640bd0fe5b28332b277316cff1dadf40d083 (diff) |
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>
-rw-r--r-- | drivers/crypto/ccp/ccp-dev-v3.c | 2 | ||||
-rw-r--r-- | drivers/crypto/ccp/ccp-dev.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/ccp/ccp-dev-v3.c b/drivers/crypto/ccp/ccp-dev-v3.c index 597fc50bdaa6..d7a710347967 100644 --- a/drivers/crypto/ccp/ccp-dev-v3.c +++ b/drivers/crypto/ccp/ccp-dev-v3.c | |||
@@ -526,7 +526,7 @@ static irqreturn_t ccp_irq_handler(int irq, void *data) | |||
526 | return IRQ_HANDLED; | 526 | return IRQ_HANDLED; |
527 | } | 527 | } |
528 | 528 | ||
529 | static struct ccp_actions ccp3_actions = { | 529 | static const struct ccp_actions ccp3_actions = { |
530 | .perform_aes = ccp_perform_aes, | 530 | .perform_aes = ccp_perform_aes, |
531 | .perform_xts_aes = ccp_perform_xts_aes, | 531 | .perform_xts_aes = ccp_perform_xts_aes, |
532 | .perform_sha = ccp_perform_sha, | 532 | .perform_sha = ccp_perform_sha, |
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 { | |||
162 | /* Structure to hold CCP version-specific values */ | 162 | /* Structure to hold CCP version-specific values */ |
163 | struct ccp_vdata { | 163 | struct ccp_vdata { |
164 | unsigned int version; | 164 | unsigned int version; |
165 | struct ccp_actions *perform; | 165 | const struct ccp_actions *perform; |
166 | }; | 166 | }; |
167 | 167 | ||
168 | extern struct ccp_vdata ccpv3; | 168 | extern struct ccp_vdata ccpv3; |