Commit 7b49fabf authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Herbert Xu

crypto: atmel-tdes - Constify value to write to hw

atmel_tdes_write_n() should not modify its value argument.
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 37f96694
...@@ -189,7 +189,7 @@ static inline void atmel_tdes_write(struct atmel_tdes_dev *dd, ...@@ -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, 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) for (; count--; value++, offset += 4)
atmel_tdes_write(dd, offset, *value); atmel_tdes_write(dd, offset, *value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment