staging: rtl8188eu: rename rtw_IOL_applied
PATCH 1/4 staging: rtl8188eu: rename rtw_IOL_applied
Rename rtw_IOL_applied to be all lowercase.rtw_IOL_applied -> rtw_iol_applied
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- drivers/staging/rtl8188eu/core/rtw_iol.c | 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 4 ++-- drivers/staging/rtl8188eu/include/rtw_iol.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8188eu/core/rtw_efuse.c +1 -1
@@ -298,7 +298,7 @@ static s32 iol_read_efuse(struct adapter *padapter, u8 txpktbuf_bndy, u16 offsetvoid efuse_ReadEFuse (struct adapter *Adapter,u8 efuseType,u16 _offset,u16 _size_byte,u8 *pbuf) { -if (rtw_IOL_applied (Adapter)) { +if (rtw_iol_applied (Adapter)) {rtw_hal_power_on (Adapter);iol_mode_enable (Adapter,1 );iol_read_efuse (Adapter,0 , _offset, _size_byte, pbuf);
drivers/staging/rtl8188eu/core/rtw_iol.c +1 -1
@@ -7,7 +7,7 @@#include <rtw_iol.h> -bool rtw_IOL_applied (struct adapter *adapter) +bool rtw_iol_applied (struct adapter *adapter) {if (adapter->registrypriv.fw_iol ==1 )return true;
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c +2 -2
@@ -75,7 +75,7 @@ s32 rtl8188e_iol_efuse_patch(struct adapter *padapter)s32 result = _SUCCESS;DBG_88E ("==> %s\n" , __func__); -if (rtw_IOL_applied (padapter)) { +if (rtw_iol_applied (padapter)) {iol_mode_enable (padapter,1 ); result =iol_execute (padapter,CMD_READ_EFUSE_MAP );if (result == _SUCCESS)
@@ -207,7 +207,7 @@ s32 InitLLTTable(struct adapter *padapter, u8 txpktbuf_bndy)u32 i;u32 Last_Entry_Of_TxPktBuf =LAST_ENTRY_OF_TX_PKT_BUFFER ;/* 176, 22k */ -if (rtw_IOL_applied (padapter)) { +if (rtw_iol_applied (padapter)) { status =iol_InitLLTTable (padapter, txpktbuf_bndy); }else {for (i =0 ; i < (txpktbuf_bndy -1 ); i++) {
drivers/staging/rtl8188eu/include/rtw_iol.h +1 -1
@@ -10,6 +10,6 @@#include <osdep_service.h> #include <drv_types.h> -bool rtw_IOL_applied (struct adapter *adapter); +bool rtw_iol_applied (struct adapter *adapter);#endif /* __RTW_IOL_H_ */
Signature · 1 line
2.18.0
PATCH 2/4 staging: rtl8188eu: remove unnecessary parentheses
Remove unnecessary parentheses from if conditions.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/rtl8188eu/core/rtw_iol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_iol.c +2 -2
@@ -12,8 +12,8 @@ bool rtw_iol_applied(struct adapter *adapter)if (adapter->registrypriv.fw_iol ==1 )return true; -if ((adapter->registrypriv.fw_iol ==2 ) && - (!adapter_to_dvobj (adapter)->ishighspeed)) +if (adapter->registrypriv.fw_iol ==2 && + !adapter_to_dvobj (adapter)->ishighspeed)return true;return false; }
Signature · 1 line
2.18.0
PATCH 3/4 staging: rtl8188eu: remove redundant include
In reply to Michael StraubeThe header osdep_service.h is included from drv_types.h, so remove the redundant include.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/rtl8188eu/include/rtw_iol.h | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8188eu/include/rtw_iol.h +0 -1
@@ -7,7 +7,6 @@#ifndef __RTW_IOL_H_#define __RTW_IOL_H_ -#include <osdep_service.h> #include <drv_types.h> bool rtw_iol_applied (struct adapter *adapter);
Signature · 1 line
2.18.0
PATCH 4/4 staging: rtl8188eu: remove unnecessary includes
In reply to Michael StraubeIn the header rtw_iol.h there is only one function declared. Remove the include of rtw_iol.h from files that do not use this function.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/rtl8188eu/hal/mac_cfg.c | 1 - drivers/staging/rtl8188eu/hal/phy.c | 1 - drivers/staging/rtl8188eu/hal/usb_halinit.c | 1 - drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 1 - 4 files changed, 4 deletions(-)
drivers/staging/rtl8188eu/hal/mac_cfg.c +0 -1
@@ -7,7 +7,6 @@#include "odm_precomp.h" #include "phy.h" -#include <rtw_iol.h> /* MAC_REG.TXT */
drivers/staging/rtl8188eu/hal/phy.c +0 -1
@@ -8,7 +8,6 @@#include <osdep_service.h> #include <drv_types.h> -#include <rtw_iol.h> #include <rtl8188e_hal.h> #include <rf.h> #include <phy.h>
drivers/staging/rtl8188eu/hal/usb_halinit.c +0 -1
@@ -11,7 +11,6 @@#include <rtw_efuse.h> #include <fw.h> #include <rtl8188e_hal.h> -#include <rtw_iol.h> #include <phy.h> #define HAL_BB_ENABLE 1
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +0 -1
@@ -19,7 +19,6 @@#include <rtw_ioctl_set.h> #include <rtl8188e_hal.h> -#include <rtw_iol.h> #include <linux/vmalloc.h> #include <linux/etherdevice.h>
Signature · 1 line
2.18.0