summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/marvell
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-10-18 17:23:56 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-20 22:10:52 +0800
commitc439e4eec73373c6d5b7129ece69d67978ada307 (patch)
treea9bc0586acbd3fcf680e09610fc71d378160042b /drivers/crypto/marvell
parentd30cb2fa34829161cfa1f847049b3fcfcfeebc93 (diff)
downloadop-kernel-dev-c439e4eec73373c6d5b7129ece69d67978ada307.zip
op-kernel-dev-c439e4eec73373c6d5b7129ece69d67978ada307.tar.gz
crypto: marvell/cesa - const-ify argument to mv_cesa_get_op_cfg()
mv_cesa_get_op_cfg() does not write to its argument, it only reads. So, let's make it const. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
-rw-r--r--drivers/crypto/marvell/cesa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/marvell/cesa.h b/drivers/crypto/marvell/cesa.h
index e5f70ab..14f8285 100644
--- a/drivers/crypto/marvell/cesa.h
+++ b/drivers/crypto/marvell/cesa.h
@@ -627,7 +627,7 @@ static inline void mv_cesa_update_op_cfg(struct mv_cesa_op_ctx *op,
op->desc.config |= cpu_to_le32(cfg);
}
-static inline u32 mv_cesa_get_op_cfg(struct mv_cesa_op_ctx *op)
+static inline u32 mv_cesa_get_op_cfg(const struct mv_cesa_op_ctx *op)
{
return le32_to_cpu(op->desc.config);
}
OpenPOWER on IntegriCloud