mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
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>
This commit is contained in:
parent
d30cb2fa34
commit
c439e4eec7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user