Commit bc197b2a authored by Julia Lawall's avatar Julia Lawall Committed by Herbert Xu

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Acked-by: default avatarGary Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 472d640b
...@@ -526,7 +526,7 @@ static irqreturn_t ccp_irq_handler(int irq, void *data) ...@@ -526,7 +526,7 @@ static irqreturn_t ccp_irq_handler(int irq, void *data)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static struct ccp_actions ccp3_actions = { static const struct ccp_actions ccp3_actions = {
.perform_aes = ccp_perform_aes, .perform_aes = ccp_perform_aes,
.perform_xts_aes = ccp_perform_xts_aes, .perform_xts_aes = ccp_perform_xts_aes,
.perform_sha = ccp_perform_sha, .perform_sha = ccp_perform_sha,
......
...@@ -162,7 +162,7 @@ struct ccp_actions { ...@@ -162,7 +162,7 @@ struct ccp_actions {
/* Structure to hold CCP version-specific values */ /* Structure to hold CCP version-specific values */
struct ccp_vdata { struct ccp_vdata {
unsigned int version; unsigned int version;
struct ccp_actions *perform; const struct ccp_actions *perform;
}; };
extern struct ccp_vdata ccpv3; extern struct ccp_vdata ccpv3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment