diff options
author | Martin Kaiser <martin@kaiser.cx> | 2023-02-06 22:01:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-07 08:41:18 +0100 |
commit | 75c68a49cb48388eb4225ee97a53bea99238c88c (patch) | |
tree | d10fc18f6c4005053f6184a3cd9cce51c4cc17e1 /drivers/staging/r8188eu | |
parent | 815950ef52001c169b7fb32781163cf5dc62a53d (diff) |
staging: r8188eu: make ips_leave static
The ips_leave function is used only in rtw_pwrctrl.c. We can make this
function static.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230206210124.150142-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu')
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_pwrctrl.c | 2 | ||||
-rw-r--r-- | drivers/staging/r8188eu/include/rtw_pwrctrl.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_pwrctrl.c b/drivers/staging/r8188eu/core/rtw_pwrctrl.c index e70d78357bcb..702a29f96d74 100644 --- a/drivers/staging/r8188eu/core/rtw_pwrctrl.c +++ b/drivers/staging/r8188eu/core/rtw_pwrctrl.c @@ -39,7 +39,7 @@ static void ips_enter(struct adapter *padapter) mutex_unlock(&pwrpriv->lock); } -int ips_leave(struct adapter *padapter) +static int ips_leave(struct adapter *padapter) { struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; struct security_priv *psecuritypriv = &padapter->securitypriv; diff --git a/drivers/staging/r8188eu/include/rtw_pwrctrl.h b/drivers/staging/r8188eu/include/rtw_pwrctrl.h index 56492ab0f78d..f7aeac262fad 100644 --- a/drivers/staging/r8188eu/include/rtw_pwrctrl.h +++ b/drivers/staging/r8188eu/include/rtw_pwrctrl.h @@ -99,7 +99,6 @@ void rtw_set_firmware_ps_mode(struct adapter *adapter, u8 mode); void rtw_set_ps_mode(struct adapter *adapter, u8 ps_mode, u8 smart_ps, u8 bcn_ant_mode); void LeaveAllPowerSaveMode(struct adapter *adapter); -int ips_leave(struct adapter *padapter); void rtw_ps_processor(struct adapter *padapter); |