summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-12-05 09:53:45 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 16:37:03 +0800
commit7b49fabfc35c28deae514f07d563b0fb42c7cfea (patch)
treea7d4efe0c8528a73ebdc496f6a656e3f62a1421e /drivers/crypto
parent37f96694cf73ba116993a9d2d99ad6a75fa7fdb0 (diff)
crypto: atmel-tdes - Constify value to write to hw
atmel_tdes_write_n() should not modify its value argument. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/atmel-tdes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/atmel-tdes.c b/drivers/crypto/atmel-tdes.c
index ede1bbd11db7..dede6ca0d492 100644
--- a/drivers/crypto/atmel-tdes.c
+++ b/drivers/crypto/atmel-tdes.c
@@ -189,7 +189,7 @@ static inline void atmel_tdes_write(struct atmel_tdes_dev *dd,
}
static void atmel_tdes_write_n(struct atmel_tdes_dev *dd, u32 offset,
- u32 *value, int count)
+ const u32 *value, int count)
{
for (; count--; value++, offset += 4)
atmel_tdes_write(dd, offset, *value);