diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-12-12 14:52:56 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-13 12:39:37 +0100 |
commit | fc2a36c065d7c5dc07df101342fb5668c0c3e316 (patch) | |
tree | d5699a86e5b6c7661289cccc0e9dc24d834e4284 | |
parent | 5af4f8349c5984e73ae85ab0328f8e229cf9e2f7 (diff) | |
download | linux-fc2a36c065d7c5dc07df101342fb5668c0c3e316.tar.bz2 |
staging: ccree: fix req mgr func def coding style
Fix request manager functions definition indentation according to coding
style guide lines for better code readability
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ccree/ssi_request_mgr.c | 21 | ||||
-rw-r--r-- | drivers/staging/ccree/ssi_request_mgr.h | 9 |
2 files changed, 13 insertions, 17 deletions
diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index dbdfd0c595c4..91f5e2dacba8 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/ssi_request_mgr.c @@ -165,9 +165,8 @@ req_mgr_init_err: return rc; } -static void enqueue_seq( - void __iomem *cc_base, - struct cc_hw_desc seq[], unsigned int seq_len) +static void enqueue_seq(void __iomem *cc_base, struct cc_hw_desc seq[], + unsigned int seq_len) { int i, w; void * __iomem reg = cc_base + CC_REG(DSCRPTR_QUEUE_WORD0); @@ -202,10 +201,9 @@ static void request_mgr_complete(struct device *dev, void *dx_compl_h) complete(this_compl); } -static int cc_queues_status( - struct ssi_drvdata *drvdata, - struct cc_req_mgr_handle *req_mgr_h, - unsigned int total_seq_len) +static int cc_queues_status(struct ssi_drvdata *drvdata, + struct cc_req_mgr_handle *req_mgr_h, + unsigned int total_seq_len) { unsigned long poll_queue; struct device *dev = drvdata_to_dev(drvdata); @@ -259,9 +257,8 @@ static int cc_queues_status( * * \return int Returns -EINPROGRESS if "is_dout=true"; "0" if "is_dout=false" */ -int send_request( - struct ssi_drvdata *drvdata, struct ssi_crypto_req *ssi_req, - struct cc_hw_desc *desc, unsigned int len, bool is_dout) +int send_request(struct ssi_drvdata *drvdata, struct ssi_crypto_req *ssi_req, + struct cc_hw_desc *desc, unsigned int len, bool is_dout) { void __iomem *cc_base = drvdata->cc_base; struct cc_req_mgr_handle *req_mgr_h = drvdata->request_mgr_handle; @@ -413,8 +410,8 @@ int send_request( * * \return int Returns "0" upon success */ -int send_request_init( - struct ssi_drvdata *drvdata, struct cc_hw_desc *desc, unsigned int len) +int send_request_init(struct ssi_drvdata *drvdata, struct cc_hw_desc *desc, + unsigned int len) { void __iomem *cc_base = drvdata->cc_base; struct cc_req_mgr_handle *req_mgr_h = drvdata->request_mgr_handle; diff --git a/drivers/staging/ccree/ssi_request_mgr.h b/drivers/staging/ccree/ssi_request_mgr.h index d018f51caa5f..91e0d47022b5 100644 --- a/drivers/staging/ccree/ssi_request_mgr.h +++ b/drivers/staging/ccree/ssi_request_mgr.h @@ -38,12 +38,11 @@ int cc_req_mgr_init(struct ssi_drvdata *drvdata); * * \return int Returns -EINPROGRESS if "is_dout=true"; "0" if "is_dout=false" */ -int send_request( - struct ssi_drvdata *drvdata, struct ssi_crypto_req *ssi_req, - struct cc_hw_desc *desc, unsigned int len, bool is_dout); +int send_request(struct ssi_drvdata *drvdata, struct ssi_crypto_req *ssi_req, + struct cc_hw_desc *desc, unsigned int len, bool is_dout); -int send_request_init( - struct ssi_drvdata *drvdata, struct cc_hw_desc *desc, unsigned int len); +int send_request_init(struct ssi_drvdata *drvdata, struct cc_hw_desc *desc, + unsigned int len); void complete_request(struct ssi_drvdata *drvdata); |