crypto: atmel-aes - use SIZE_IN_WORDS() helper macro
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 17 Dec 2015 17:13:01 +0000 (18:13 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Dec 2015 10:19:56 +0000 (18:19 +0800)
This is a dummy cosmetic patch.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c

index 9ef38eca4ae76bb446ec5b3850dd112dc51667d6..176ab3878583581b3f75cb1bbc1335862cbb41ca 100644 (file)
@@ -689,10 +689,10 @@ static void atmel_aes_write_ctrl(struct atmel_aes_dev *dd, bool use_dma,
        atmel_aes_write(dd, AES_MR, valmr);
 
        atmel_aes_write_n(dd, AES_KEYWR(0), dd->ctx->key,
-                                               dd->ctx->keylen >> 2);
+                         SIZE_IN_WORDS(dd->ctx->keylen));
 
        if (iv && (valmr & AES_MR_OPMOD_MASK) != AES_MR_OPMOD_ECB)
-               atmel_aes_write_n(dd, AES_IVR(0), iv, 4);
+               atmel_aes_write_block(dd, AES_IVR(0), iv);
 }
 
 static int atmel_aes_handle_queue(struct atmel_aes_dev *dd,