Commit 98a6bc10 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Herbert Xu

crypto: s5p-sss - Add and fix kerneldoc

Add missing and fix existing kerneldoc to silence W=1 warnings:

  drivers/crypto/s5p-sss.c:333: warning: Function parameter or member 'pclk' not described in 's5p_aes_dev'
  drivers/crypto/s5p-sss.c:373: warning: Function parameter or member 'sgl' not described in 's5p_hash_reqctx'
  drivers/crypto/s5p-sss.c:373: warning: Function parameter or member 'buffer' not described in 's5p_hash_reqctx'
  drivers/crypto/s5p-sss.c:1143: warning: Function parameter or member 'new_len' not described in 's5p_hash_prepare_sgs'
  drivers/crypto/s5p-sss.c:1143: warning: Excess function parameter 'nbytes' description in 's5p_hash_prepare_sgs'
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: default avatarKamil Konieczny <k.konieczny@samsung.com>
Acked-by: default avatarKamil Konieczny <k.konieczny@samsung.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7fe99da1
...@@ -260,6 +260,7 @@ struct s5p_aes_ctx { ...@@ -260,6 +260,7 @@ struct s5p_aes_ctx {
* struct s5p_aes_dev - Crypto device state container * struct s5p_aes_dev - Crypto device state container
* @dev: Associated device * @dev: Associated device
* @clk: Clock for accessing hardware * @clk: Clock for accessing hardware
* @pclk: APB bus clock necessary to access the hardware
* @ioaddr: Mapped IO memory region * @ioaddr: Mapped IO memory region
* @aes_ioaddr: Per-varian offset for AES block IO memory * @aes_ioaddr: Per-varian offset for AES block IO memory
* @irq_fc: Feed control interrupt line * @irq_fc: Feed control interrupt line
...@@ -342,13 +343,13 @@ struct s5p_aes_dev { ...@@ -342,13 +343,13 @@ struct s5p_aes_dev {
* @engine: Bits for selecting type of HASH in SSS block * @engine: Bits for selecting type of HASH in SSS block
* @sg: sg for DMA transfer * @sg: sg for DMA transfer
* @sg_len: Length of sg for DMA transfer * @sg_len: Length of sg for DMA transfer
* @sgl[]: sg for joining buffer and req->src scatterlist * @sgl: sg for joining buffer and req->src scatterlist
* @skip: Skip offset in req->src for current op * @skip: Skip offset in req->src for current op
* @total: Total number of bytes for current request * @total: Total number of bytes for current request
* @finup: Keep state for finup or final. * @finup: Keep state for finup or final.
* @error: Keep track of error. * @error: Keep track of error.
* @bufcnt: Number of bytes holded in buffer[] * @bufcnt: Number of bytes holded in buffer[]
* @buffer[]: For byte(s) from end of req->src in UPDATE op * @buffer: For byte(s) from end of req->src in UPDATE op
*/ */
struct s5p_hash_reqctx { struct s5p_hash_reqctx {
struct s5p_aes_dev *dd; struct s5p_aes_dev *dd;
...@@ -1125,7 +1126,7 @@ static int s5p_hash_copy_sg_lists(struct s5p_hash_reqctx *ctx, ...@@ -1125,7 +1126,7 @@ static int s5p_hash_copy_sg_lists(struct s5p_hash_reqctx *ctx,
* s5p_hash_prepare_sgs() - prepare sg for processing * s5p_hash_prepare_sgs() - prepare sg for processing
* @ctx: request context * @ctx: request context
* @sg: source scatterlist request * @sg: source scatterlist request
* @nbytes: number of bytes to process from sg * @new_len: number of bytes to process from sg
* @final: final flag * @final: final flag
* *
* Check two conditions: (1) if buffers in sg have len aligned data, and (2) * Check two conditions: (1) if buffers in sg have len aligned data, and (2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment