summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccree/cc_hash.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-02-11 19:19:07 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-22 09:25:44 +0800
commit1a895f1d5bceee0c6b66dcfdabcc9804006ca229 (patch)
tree3a00be18dc74fc02269bd5587c47f2b9928ead24 /drivers/crypto/ccree/cc_hash.h
parent37282f8d157169198e433d1f63e19a713267516c (diff)
downloadlwn-1a895f1d5bceee0c6b66dcfdabcc9804006ca229.tar.gz
lwn-1a895f1d5bceee0c6b66dcfdabcc9804006ca229.zip
crypto: ccree - use u32 for SRAM addresses
SRAM addresses are small integer offsets into local SRAM. Currently they are stored using a mixture of cc_sram_addr_t (u64), u32, and dma_addr_t types. Settle on u32, and remove the cc_sram_addr_t typedefs. This allows to drop several casts. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_hash.h')
-rw-r--r--drivers/crypto/ccree/cc_hash.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/crypto/ccree/cc_hash.h b/drivers/crypto/ccree/cc_hash.h
index 3dbd0abefea0..d76ecae996ca 100644
--- a/drivers/crypto/ccree/cc_hash.h
+++ b/drivers/crypto/ccree/cc_hash.h
@@ -89,8 +89,7 @@ int cc_hash_free(struct cc_drvdata *drvdata);
*
* \return u32 returns the address of the initial digest length in SRAM
*/
-cc_sram_addr_t
-cc_digest_len_addr(void *drvdata, u32 mode);
+u32 cc_digest_len_addr(void *drvdata, u32 mode);
/*!
* Gets the address of the initial digest in SRAM
@@ -102,6 +101,6 @@ cc_digest_len_addr(void *drvdata, u32 mode);
*
* \return u32 The address of the initial digest in SRAM
*/
-cc_sram_addr_t cc_larval_digest_addr(void *drvdata, u32 mode);
+u32 cc_larval_digest_addr(void *drvdata, u32 mode);
#endif /*__CC_HASH_H__*/