staging: rtl8712: Replace function r8712_init_evt_priv()
Remove function r8712_init_evt_priv as all it does is call _init_evt_priv. Rename _init_evt_priv to r8712_init_evt_priv to maintain compatibility with call sites. Change type of new r8712_init_evt_priv from static to non-static as original r8712_init_evt_priv was non-static. Change return type of new r8712_init_evt_priv to int as original had return type u32 but new (formerly _init_evt_priv) had return type sint. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d91674322d
commit
795eb36899
|
@ -73,7 +73,7 @@ int r8712_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static sint _init_evt_priv(struct evt_priv *pevtpriv)
|
int r8712_init_evt_priv(struct evt_priv *pevtpriv)
|
||||||
{
|
{
|
||||||
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
|
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
|
||||||
pevtpriv->event_seq = 0;
|
pevtpriv->event_seq = 0;
|
||||||
|
@ -135,11 +135,6 @@ static struct cmd_obj *_dequeue_cmd(struct __queue *queue)
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 r8712_init_evt_priv(struct evt_priv *pevtpriv)
|
|
||||||
{
|
|
||||||
return _init_evt_priv(pevtpriv);
|
|
||||||
}
|
|
||||||
|
|
||||||
void r8712_free_evt_priv(struct evt_priv *pevtpriv)
|
void r8712_free_evt_priv(struct evt_priv *pevtpriv)
|
||||||
{
|
{
|
||||||
_free_evt_priv(pevtpriv);
|
_free_evt_priv(pevtpriv);
|
||||||
|
|
|
@ -86,7 +86,7 @@ void r8712_free_cmd_obj(struct cmd_obj *pcmd);
|
||||||
int r8712_cmd_thread(void *context);
|
int r8712_cmd_thread(void *context);
|
||||||
int r8712_init_cmd_priv(struct cmd_priv *pcmdpriv);
|
int r8712_init_cmd_priv(struct cmd_priv *pcmdpriv);
|
||||||
void r8712_free_cmd_priv(struct cmd_priv *pcmdpriv);
|
void r8712_free_cmd_priv(struct cmd_priv *pcmdpriv);
|
||||||
u32 r8712_init_evt_priv(struct evt_priv *pevtpriv);
|
int r8712_init_evt_priv(struct evt_priv *pevtpriv);
|
||||||
void r8712_free_evt_priv(struct evt_priv *pevtpriv);
|
void r8712_free_evt_priv(struct evt_priv *pevtpriv);
|
||||||
|
|
||||||
enum rtl871x_drvint_cid {
|
enum rtl871x_drvint_cid {
|
||||||
|
|
Loading…
Reference in New Issue