projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30cb2f
)
crypto: marvell/cesa - const-ify argument to mv_cesa_get_op_cfg()
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:23:56 +0000
(17:23 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:10:52 +0000
(22:10 +0800)
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>
drivers/crypto/marvell/cesa.h
patch
|
blob
|
history
diff --git
a/drivers/crypto/marvell/cesa.h
b/drivers/crypto/marvell/cesa.h
index e5f70ab4580d758b0c2c387b2ecfa15624108ad5..14f8285379b3f74579694b99bc17b1e9d95e43b0 100644
(file)
--- 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);
}