staging: r8188eu: remove wrapper rtw_IOL_exec_cmds_sync()
authorMichael Straube <straube.linux@gmail.com>
Fri, 10 Sep 2021 11:11:09 +0000 (13:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:55 +0000 (08:49 +0200)
Function rtw_IOL_exec_cmds_sync() is just a wrapper around
rtl8188e_IOL_exec_cmds_sync(). Remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210910111110.4628-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_iol.c
drivers/staging/r8188eu/hal/HalHWImg8188E_BB.c
drivers/staging/r8188eu/hal/HalHWImg8188E_MAC.c
drivers/staging/r8188eu/hal/HalHWImg8188E_RF.c
drivers/staging/r8188eu/include/rtw_iol.h
drivers/staging/r8188eu/os_dep/ioctl_linux.c

index 9c85e59..0867755 100644 (file)
@@ -72,11 +72,6 @@ bool rtw_IOL_applied(struct adapter  *adapter)
        return false;
 }
 
-int rtw_IOL_exec_cmds_sync(struct adapter  *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt)
-{
-       return rtl8188e_IOL_exec_cmds_sync(adapter, xmit_frame, max_wating_ms, bndy_cnt);
-}
-
 int rtw_IOL_append_LLT_cmd(struct xmit_frame *xmit_frame, u8 page_boundary)
 {
        return _SUCCESS;
index 55aa20a..86e9255 100644 (file)
@@ -246,7 +246,7 @@ enum HAL_STATUS ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm)
                }
        }
        if (biol) {
-               if (!rtw_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
+               if (!rtl8188e_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
                        printk("~~~ %s IOL_exec_cmds Failed !!!\n", __func__);
                        rst = HAL_STATUS_FAILURE;
                }
@@ -557,7 +557,7 @@ enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm)
                }
        }
        if (biol) {
-               if (!rtw_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
+               if (!rtl8188e_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
                        rst = HAL_STATUS_FAILURE;
                        pr_info("~~~ IOL Config %s Failed !!!\n", __func__);
                }
index 0ff2609..0aab0eb 100644 (file)
@@ -204,7 +204,7 @@ enum HAL_STATUS ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm)
                }
        }
        if (biol) {
-               if (!rtw_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
+               if (!rtl8188e_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
                        pr_info("~~~ MAC IOL_exec_cmds Failed !!!\n");
                        rst = HAL_STATUS_FAILURE;
                }
index 55e4b4a..b4269ad 100644 (file)
@@ -241,7 +241,7 @@ enum HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *pDM_Odm)
                }
        }
        if (biol) {
-               if (!rtw_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
+               if (!rtl8188e_IOL_exec_cmds_sync(pDM_Odm->Adapter, pxmit_frame, 1000, bndy_cnt)) {
                        rst = HAL_STATUS_FAILURE;
                        pr_info("~~~ IOL Config %s Failed !!!\n", __func__);
                }
index 471f9ca..a07c3ae 100644 (file)
@@ -34,9 +34,6 @@ struct xmit_frame *rtw_IOL_accquire_xmit_frame(struct adapter *adapter);
 int rtw_IOL_append_cmds(struct xmit_frame *xmit_frame, u8 *IOL_cmds,
                        u32 cmd_len);
 int rtw_IOL_append_LLT_cmd(struct xmit_frame *xmit_frame, u8 page_boundary);
-int rtw_IOL_exec_cmds_sync(struct adapter  *adapter,
-                          struct xmit_frame *xmit_frame, u32 max_wating_ms,
-                          u32 bndy_cnt);
 bool rtw_IOL_applied(struct adapter  *adapter);
 int rtw_IOL_append_DELAY_US_cmd(struct xmit_frame *xmit_frame, u16 us);
 int rtw_IOL_append_DELAY_MS_cmd(struct xmit_frame *xmit_frame, u16 ms);
index 1349348..2645595 100644 (file)
@@ -4000,7 +4000,7 @@ static int rtw_dbg_port(struct net_device *dev,
 
                        rtw_IOL_append_LLT_cmd(xmit_frame, page_boundary);
 
-                       if (_SUCCESS != rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 500, 0))
+                       if (rtl8188e_IOL_exec_cmds_sync(padapter, xmit_frame, 500, 0) != _SUCCESS)
                                ret = -EPERM;
                }
                        break;
@@ -4024,7 +4024,7 @@ static int rtw_dbg_port(struct net_device *dev,
                                rtw_IOL_append_WB_cmd(xmit_frame, reg, 0x08, 0xff);
                                rtw_IOL_append_DELAY_MS_cmd(xmit_frame, blink_delay_ms);
                        }
-                       if (_SUCCESS != rtw_IOL_exec_cmds_sync(padapter, xmit_frame, (blink_delay_ms * blink_num * 2) + 200, 0))
+                       if (rtl8188e_IOL_exec_cmds_sync(padapter, xmit_frame, (blink_delay_ms * blink_num * 2) + 200, 0) != _SUCCESS)
                                ret = -EPERM;
                }
                        break;
@@ -4046,7 +4046,7 @@ static int rtw_dbg_port(struct net_device *dev,
 
                        for (i = 0; i < write_num; i++)
                                rtw_IOL_append_WB_cmd(xmit_frame, reg, i + start_value, 0xFF);
-                       if (_SUCCESS != rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 5000, 0))
+                       if (rtl8188e_IOL_exec_cmds_sync(padapter, xmit_frame, 5000, 0) != _SUCCESS)
                                ret = -EPERM;
 
                        final = rtw_read8(padapter, reg);
@@ -4075,7 +4075,7 @@ static int rtw_dbg_port(struct net_device *dev,
 
                        for (i = 0; i < write_num; i++)
                                rtw_IOL_append_WW_cmd(xmit_frame, reg, i + start_value, 0xFFFF);
-                       if (_SUCCESS != rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 5000, 0))
+                       if (rtl8188e_IOL_exec_cmds_sync(padapter, xmit_frame, 5000, 0) != _SUCCESS)
                                ret = -EPERM;
 
                        final = rtw_read16(padapter, reg);
@@ -4103,7 +4103,7 @@ static int rtw_dbg_port(struct net_device *dev,
 
                        for (i = 0; i < write_num; i++)
                                rtw_IOL_append_WD_cmd(xmit_frame, reg, i + start_value, 0xFFFFFFFF);
-                       if (_SUCCESS != rtw_IOL_exec_cmds_sync(padapter, xmit_frame, 5000, 0))
+                       if (rtl8188e_IOL_exec_cmds_sync(padapter, xmit_frame, 5000, 0) != _SUCCESS)
                                ret = -EPERM;
 
                        final = rtw_read32(padapter, reg);