From: Russell King Date: Sun, 18 Oct 2015 16:23:56 +0000 (+0100) Subject: crypto: marvell/cesa - const-ify argument to mv_cesa_get_op_cfg() X-Git-Tag: v4.14-rc1~4294^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c439e4eec73373c6d5b7129ece69d67978ada307;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- 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); }