提交 200f8064 编写于 作者: G Gilad Ben-Yossef 提交者: Greg Kroah-Hartman

staging: ccree: fix cipher func def coding style

Fix cipher functions definition indentation according to coding
style guide lines for better code readability
Signed-off-by: NGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 aebae881
...@@ -435,14 +435,11 @@ static int cc_cipher_setkey(struct crypto_ablkcipher *atfm, const u8 *key, ...@@ -435,14 +435,11 @@ static int cc_cipher_setkey(struct crypto_ablkcipher *atfm, const u8 *key,
return 0; return 0;
} }
static void static void cc_setup_cipher_desc(struct crypto_tfm *tfm,
cc_setup_cipher_desc( struct blkcipher_req_ctx *req_ctx,
struct crypto_tfm *tfm, unsigned int ivsize, unsigned int nbytes,
struct blkcipher_req_ctx *req_ctx, struct cc_hw_desc desc[],
unsigned int ivsize, unsigned int *seq_size)
unsigned int nbytes,
struct cc_hw_desc desc[],
unsigned int *seq_size)
{ {
struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
struct device *dev = drvdata_to_dev(ctx_p->drvdata); struct device *dev = drvdata_to_dev(ctx_p->drvdata);
...@@ -565,12 +562,10 @@ cc_setup_cipher_desc( ...@@ -565,12 +562,10 @@ cc_setup_cipher_desc(
} }
#if SSI_CC_HAS_MULTI2 #if SSI_CC_HAS_MULTI2
static void cc_setup_multi2_desc( static void cc_setup_multi2_desc(struct crypto_tfm *tfm,
struct crypto_tfm *tfm, struct blkcipher_req_ctx *req_ctx,
struct blkcipher_req_ctx *req_ctx, unsigned int ivsize, struct cc_hw_desc desc[],
unsigned int ivsize, unsigned int *seq_size)
struct cc_hw_desc desc[],
unsigned int *seq_size)
{ {
struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
...@@ -609,15 +604,12 @@ static void cc_setup_multi2_desc( ...@@ -609,15 +604,12 @@ static void cc_setup_multi2_desc(
} }
#endif /*SSI_CC_HAS_MULTI2*/ #endif /*SSI_CC_HAS_MULTI2*/
static void static void cc_setup_cipher_data(struct crypto_tfm *tfm,
cc_setup_cipher_data( struct blkcipher_req_ctx *req_ctx,
struct crypto_tfm *tfm, struct scatterlist *dst,
struct blkcipher_req_ctx *req_ctx, struct scatterlist *src, unsigned int nbytes,
struct scatterlist *dst, struct scatterlist *src, void *areq, struct cc_hw_desc desc[],
unsigned int nbytes, unsigned int *seq_size)
void *areq,
struct cc_hw_desc desc[],
unsigned int *seq_size)
{ {
struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
struct device *dev = drvdata_to_dev(ctx_p->drvdata); struct device *dev = drvdata_to_dev(ctx_p->drvdata);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册