projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973e209
)
crypto: atmel-aes - constify value argument of atmel_aes_write_n()
author
Cyrille Pitchen
<cyrille.pitchen@atmel.com>
Thu, 17 Dec 2015 16:48:33 +0000
(17:48 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 23 Dec 2015 10:19:48 +0000
(18:19 +0800)
atmel_aes_write_n() should not modify its value argument.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/atmel-aes.c
b/drivers/crypto/atmel-aes.c
index
854e281
..
1d3997a
100644
(file)
--- a/
drivers/crypto/atmel-aes.c
+++ b/
drivers/crypto/atmel-aes.c
@@
-231,7
+231,7
@@
static void atmel_aes_read_n(struct atmel_aes_dev *dd, u32 offset,
}
static void atmel_aes_write_n(struct atmel_aes_dev *dd, u32 offset,
-
u32 *value, int count)
+
const
u32 *value, int count)
{
for (; count--; value++, offset += 4)
atmel_aes_write(dd, offset, *value);