mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 03:10:30 -04:00
staging: rtl8723bs: Remove wrapper functions and change function names
Drop wrappers rtw_init_cmd_priv and rtw_init_evt_priv and remove their function declarations, as their only purpose is to call other functions. Change function names from _rtw_init_cmd_priv to rtw_init_cmd_priv, and _rtw_init_evt_priv to rtw_init_evt_priv in function definitions and function declarations. Also, remove externs in function declarations rtw_init_cmd_priv and rtw_init_evt_priv, to maintain Linux kernel coding style. Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fdd1b243ed
commit
cfc7ef7403
@@ -162,7 +162,7 @@ Caller and the rtw_cmd_thread can protect cmd_q by spin_lock.
|
||||
No irqsave is necessary.
|
||||
*/
|
||||
|
||||
sint _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
sint rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
{
|
||||
sint res = _SUCCESS;
|
||||
|
||||
@@ -201,7 +201,7 @@ sint _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
}
|
||||
|
||||
static void c2h_wk_callback(_workitem *work);
|
||||
sint _rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
||||
sint rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
||||
{
|
||||
sint res = _SUCCESS;
|
||||
|
||||
@@ -295,22 +295,6 @@ struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
|
||||
return obj;
|
||||
}
|
||||
|
||||
u32 rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||
{
|
||||
u32 res;
|
||||
|
||||
res = _rtw_init_cmd_priv(pcmdpriv);
|
||||
return res;
|
||||
}
|
||||
|
||||
u32 rtw_init_evt_priv(struct evt_priv *pevtpriv)
|
||||
{
|
||||
int res;
|
||||
|
||||
res = _rtw_init_evt_priv(pevtpriv);
|
||||
return res;
|
||||
}
|
||||
|
||||
void rtw_free_evt_priv(struct evt_priv *pevtpriv)
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, ("rtw_free_evt_priv\n"));
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
#define __CMD_OSDEP_H_
|
||||
|
||||
|
||||
extern sint _rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
|
||||
extern sint _rtw_init_evt_priv(struct evt_priv *pevtpriv);
|
||||
sint rtw_init_cmd_priv(struct cmd_priv *pcmdpriv);
|
||||
sint rtw_init_evt_priv(struct evt_priv *pevtpriv);
|
||||
extern void _rtw_free_evt_priv (struct evt_priv *pevtpriv);
|
||||
extern void _rtw_free_cmd_priv (struct cmd_priv *pcmdpriv);
|
||||
extern sint _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj);
|
||||
|
||||
@@ -129,10 +129,8 @@ extern void rtw_free_cmd_obj(struct cmd_obj *pcmd);
|
||||
void rtw_stop_cmd_thread(struct adapter *adapter);
|
||||
int rtw_cmd_thread(void *context);
|
||||
|
||||
extern u32 rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
|
||||
extern void rtw_free_cmd_priv (struct cmd_priv *pcmdpriv);
|
||||
|
||||
extern u32 rtw_init_evt_priv (struct evt_priv *pevtpriv);
|
||||
extern void rtw_free_evt_priv (struct evt_priv *pevtpriv);
|
||||
extern void rtw_evt_notify_isr(struct evt_priv *pevtpriv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user