diff mbox series

[01/16] crypto: atmel-tdes: Constify value to write to hw

Message ID 20191205095326.5094-2-tudor.ambarus@microchip.com (mailing list archive)
State New, archived
Headers show
Series crypto: atmel - Fixes and cleanup patches | expand

Commit Message

Tudor Ambarus Dec. 5, 2019, 9:53 a.m. UTC
From: Tudor Ambarus <tudor.ambarus@microchip.com>

atmel_tdes_write_n() should not modify its value argument.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
 drivers/crypto/atmel-tdes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/crypto/atmel-tdes.c b/drivers/crypto/atmel-tdes.c
index 0c1f79b30fc1..9b69e7a26639 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);