summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-aes.c
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2016-02-01 20:17:30 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 08:33:22 +0100
commit53a0bd7144224ba26b326a16e9eaf8bd7f433220 (patch)
tree68a84943ef791083bb14c4cccbb9422281a346fa /drivers/crypto/atmel-aes.c
parentcrypto: sunxi-ss - prevent compilation on 64-bit (diff)
downloadlinux-53a0bd7144224ba26b326a16e9eaf8bd7f433220.tar.xz
linux-53a0bd7144224ba26b326a16e9eaf8bd7f433220.zip
crypto: aead - move aead_request_cast helper to aead.h
Move the helper function to common header for everybody to use. changes in v2: - move the helper to crypto/internal/aead.h instead of crypto/aead.h Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index 6dd3317ca365..949af89cdac3 100644
--- a/drivers/crypto/atmel-aes.c
+++ b/drivers/crypto/atmel-aes.c
@@ -369,12 +369,6 @@ static inline size_t atmel_aes_padlen(size_t len, size_t block_size)
return len ? block_size - len : 0;
}
-static inline struct aead_request *
-aead_request_cast(struct crypto_async_request *req)
-{
- return container_of(req, struct aead_request, base);
-}
-
static struct atmel_aes_dev *atmel_aes_find_dev(struct atmel_aes_base_ctx *ctx)
{
struct atmel_aes_dev *aes_dd = NULL;