There has been no attempt to document any of the function parameters here. Fixes the following W=1 kernel build warning(s): drivers/net/wireless/ath/wil6210/wil_platform.c:27: warning: Function parameter or member 'dev' not described in 'wil_platform_init' drivers/net/wireless/ath/wil6210/wil_platform.c:27: warning: Function parameter or member 'ops' not described in 'wil_platform_init' drivers/net/wireless/ath/wil6210/wil_platform.c:27: warning: Function parameter or member 'rops' not described in 'wil_platform_init' drivers/net/wireless/ath/wil6210/wil_platform.c:27: warning: Function parameter or member 'wil_handle' not described in 'wil_platform_init' Cc: Maya Erez <merez@codeaurora.org> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: linux-wireless@vger.kernel.org Cc: wil6210@qti.qualcomm.com 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/20200827073832.GW3248864@dell
39 lines
822 B
C
39 lines
822 B
C
// SPDX-License-Identifier: ISC
|
|
/*
|
|
* Copyright (c) 2014-2016 Qualcomm Atheros, Inc.
|
|
*/
|
|
|
|
#include <linux/device.h>
|
|
#include "wil_platform.h"
|
|
|
|
int __init wil_platform_modinit(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void wil_platform_modexit(void)
|
|
{
|
|
}
|
|
|
|
/* wil_platform_init() - wil6210 platform module init
|
|
*
|
|
* The function must be called before all other functions in this module.
|
|
* It returns a handle which is used with the rest of the API
|
|
*
|
|
*/
|
|
void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
|
|
const struct wil_platform_rops *rops, void *wil_handle)
|
|
{
|
|
void *handle = ops; /* to return some non-NULL for 'void' impl. */
|
|
|
|
if (!ops) {
|
|
dev_err(dev,
|
|
"Invalid parameter. Cannot init platform module\n");
|
|
return NULL;
|
|
}
|
|
|
|
/* platform specific init functions should be called here */
|
|
|
|
return handle;
|
|
}
|