staging: r8188eu: make ips_leave static
authorMartin Kaiser <martin@kaiser.cx>
Mon, 6 Feb 2023 21:01:23 +0000 (22:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:41:18 +0000 (08:41 +0100)
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>
drivers/staging/r8188eu/core/rtw_pwrctrl.c
drivers/staging/r8188eu/include/rtw_pwrctrl.h

index e70d78357bcb1241219973b7e23b9d13b86de159..702a29f96d7464011df6ce2f79afb8be8cd469f3 100644 (file)
@@ -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;
index 56492ab0f78de6ae21ab22144551f0141aaaef90..f7aeac262fada181898b07b88ddc0dd7d16a06d4 100644 (file)
@@ -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);