wlcore: cmd: Fix some parameter description disparities
Firstly a rename, then a split (there are 2 'len's that need documenting). Fixes the following W=1 kernel build warning(s): drivers/net/wireless/ti/wlcore/cmd.c:832: warning: Function parameter or member 'buf_len' not described in 'wl1271_cmd_test' drivers/net/wireless/ti/wlcore/cmd.c:832: warning: Excess function parameter 'len' description in 'wl1271_cmd_test' drivers/net/wireless/ti/wlcore/cmd.c:862: warning: Function parameter or member 'cmd_len' not described in 'wl1271_cmd_interrogate' drivers/net/wireless/ti/wlcore/cmd.c:862: warning: Function parameter or member 'res_len' not described in 'wl1271_cmd_interrogate' drivers/net/wireless/ti/wlcore/cmd.c:862: warning: Excess function parameter 'len' description in 'wl1271_cmd_interrogate' Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Hari Nagalla <hnagalla@gmail.com> Cc: Guy Mishol <guym@ti.com> Cc: Maital Hahn <maitalm@ti.com> Cc: Luciano Coelho <luciano.coelho@nokia.com> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200819072402.3085022-7-lee.jones@linaro.org
This commit is contained in:
parent
9833f50345
commit
25ced81e28
|
@ -825,7 +825,7 @@ out:
|
|||
*
|
||||
* @wl: wl struct
|
||||
* @buf: buffer containing the command, with all headers, must work with dma
|
||||
* @len: length of the buffer
|
||||
* @buf_len: length of the buffer
|
||||
* @answer: is answer needed
|
||||
*/
|
||||
int wl1271_cmd_test(struct wl1271 *wl, void *buf, size_t buf_len, u8 answer)
|
||||
|
@ -855,7 +855,8 @@ EXPORT_SYMBOL_GPL(wl1271_cmd_test);
|
|||
* @wl: wl struct
|
||||
* @id: acx id
|
||||
* @buf: buffer for the response, including all headers, must work with dma
|
||||
* @len: length of buf
|
||||
* @cmd_len: length of command
|
||||
* @res_len: length of payload
|
||||
*/
|
||||
int wl1271_cmd_interrogate(struct wl1271 *wl, u16 id, void *buf,
|
||||
size_t cmd_len, size_t res_len)
|
||||
|
|
Loading…
Reference in New Issue