diff options
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2015-12-17 20:13:01 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-12-23 13:19:56 +0300 |
commit | 2bfd04cde2b34e65d0954ff8372a7edf116afe41 (patch) | |
tree | cdd7e0694457c76091b12c91682a976a35e81bc8 /drivers/crypto/atmel-aes.c | |
parent | bbe628ed897d728d38c4035381d12b2f308fac6f (diff) | |
download | linux-2bfd04cde2b34e65d0954ff8372a7edf116afe41.tar.xz |
crypto: atmel-aes - use SIZE_IN_WORDS() helper macro
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>
Diffstat (limited to 'drivers/crypto/atmel-aes.c')
-rw-r--r-- | drivers/crypto/atmel-aes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index 9ef38eca4ae7..176ab3878583 100644 --- a/drivers/crypto/atmel-aes.c +++ b/drivers/crypto/atmel-aes.c @@ -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, |