call rtw_IOL_append_*_cmd directly
v2 cover call rtw_IOL_append_*_cmd directly
From: Daniel Watson <[email protected]>
This patchset calls the rtw_IOL_append_*_cmd group of functions directly and removes the #define wrappers.
Daniel Watson (4):
staging: r8188eu: call rtw_IOL_append_WB_cmd directly
staging: r8188eu: call rtw_IOL_append_WW_cmd directly
staging: r8188eu: call rtw_IOL_append_WD_cmd directly
staging: r8188eu: call rtw_IOL_append_WRF_cmd directly
drivers/staging/r8188eu/core/rtw_iol.c | 8 ++++---- drivers/staging/r8188eu/include/rtw_iol.h | 24 ++++++++--------------- 2 files changed, 12 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1
PATCH v2 1/4 staging: r8188eu: call rtw_IOL_append_WB_cmd directly
From: Daniel Watson <[email protected]>
Call rtf_IOL_append_WB_cmd directly, instead of using wrapper macro.
Delete wrapper macro, which is not needed.
---
Changes in v2:
- Make the commit message clearer
Note: This code has not been run on hardware.
drivers/staging/r8188eu/core/rtw_iol.c | 2 +- drivers/staging/r8188eu/include/rtw_iol.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-)
drivers/staging/r8188eu/core/rtw_iol.c +1 -1
@@ -67,7 +67,7 @@ bool rtw_IOL_applied(struct adapter *adapter)return false; } -int _rtw_IOL_append_WB_cmd (struct xmit_frame *xmit_frame,u16 addr,u8 value,u8 mask) +int rtw_IOL_append_WB_cmd (struct xmit_frame *xmit_frame,u16 addr,u8 value,u8 mask) {struct ioreg_cfg cmd = {8 ,IOREG_CMD_WB_REG ,0x0 ,0x0 ,0x0 };
drivers/staging/r8188eu/include/rtw_iol.h +2 -4
@@ -41,16 +41,14 @@ int rtw_IOL_append_END_cmd(struct xmit_frame *xmit_frame);void read_efuse_from_txpktbuf (struct adapter *adapter,int bcnhead,u8 *content,u16 *size); -int _rtw_IOL_append_WB_cmd (struct xmit_frame *xmit_frame,u16 addr, -u8 value,u8 mask); +int rtw_IOL_append_WB_cmd (struct xmit_frame *xmit_frame,u16 addr, +u8 value,u8 mask);int _rtw_IOL_append_WW_cmd (struct xmit_frame *xmit_frame,u16 addr,u16 value,u16 mask);int _rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr,u32 value,u32 mask);int _rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path,u16 addr,u32 value,u32 mask); -#define rtw_IOL_append_WB_cmd (xmit_frame, addr, value, mask) \ - _rtw_IOL_append_WB_cmd((xmit_frame), (addr), (value) ,(mask))#define rtw_IOL_append_WW_cmd (xmit_frame, addr, value, mask) \ _rtw_IOL_append_WW_cmd((xmit_frame), (addr), (value),(mask))#define rtw_IOL_append_WD_cmd (xmit_frame, addr, value, mask) \
Signature · 1 line
2.34.1
PATCH v2 2/4 staging: r8188eu: call rtw_IOL_append_WW_cmd directly
In reply to daniel watsonFrom: Daniel Watson <[email protected]>
Call rtw_IOL_append_WW_cmd directly, instead of using wrapper macro.
Delete wrapper macro, which is not needed.
---
Changes in v2:
- Make the commit message clearer
Note: This code has not been run on hardware.
drivers/staging/r8188eu/core/rtw_iol.c | 2 +- drivers/staging/r8188eu/include/rtw_iol.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-)
drivers/staging/r8188eu/core/rtw_iol.c +1 -1
@@ -81,7 +81,7 @@ int rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value, u8return rtw_IOL_append_cmds (xmit_frame, (u8 *)&cmd, cmd.length); } -int _rtw_IOL_append_WW_cmd (struct xmit_frame *xmit_frame,u16 addr,u16 value,u16 mask) +int rtw_IOL_append_WW_cmd (struct xmit_frame *xmit_frame,u16 addr,u16 value,u16 mask) {struct ioreg_cfg cmd = {8 ,IOREG_CMD_WW_REG ,0x0 ,0x0 ,0x0 };
drivers/staging/r8188eu/include/rtw_iol.h +2 -4
@@ -43,14 +43,12 @@ void read_efuse_from_txpktbuf(struct adapter *adapter, int bcnhead,int rtw_IOL_append_WB_cmd (struct xmit_frame *xmit_frame,u16 addr,u8 value,u8 mask); -int _rtw_IOL_append_WW_cmd (struct xmit_frame *xmit_frame,u16 addr, -u16 value,u16 mask); +int rtw_IOL_append_WW_cmd (struct xmit_frame *xmit_frame,u16 addr, +u16 value,u16 mask);int _rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr,u32 value,u32 mask);int _rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path,u16 addr,u32 value,u32 mask); -#define rtw_IOL_append_WW_cmd (xmit_frame, addr, value, mask) \ - _rtw_IOL_append_WW_cmd((xmit_frame), (addr), (value),(mask))#define rtw_IOL_append_WD_cmd (xmit_frame, addr, value, mask) \ _rtw_IOL_append_WD_cmd((xmit_frame), (addr), (value), (mask))#define rtw_IOL_append_WRF_cmd (xmit_frame, rf_path, addr, value, mask) \
Signature · 1 line
2.34.1
PATCH v2 3/4 staging: r8188eu: call rtw_IOL_append_WD_cmd directly
In reply to daniel watsonFrom: Daniel Watson <[email protected]>
Call rtw_IOL_append_WD_cmd directly, instead of using wrapper macro.
Delete wrapper macro, which is not needed.
---
Changes in v2:
- Make the commit message clearer
Note: This code has not been run on hardware.
drivers/staging/r8188eu/core/rtw_iol.c | 2 +- drivers/staging/r8188eu/include/rtw_iol.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-)
drivers/staging/r8188eu/core/rtw_iol.c +1 -1
@@ -95,7 +95,7 @@ int rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value, u1return rtw_IOL_append_cmds (xmit_frame, (u8 *)&cmd, cmd.length); } -int _rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr,u32 value,u32 mask) +int rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr,u32 value,u32 mask) {struct ioreg_cfg cmd = {8 ,IOREG_CMD_WD_REG ,0x0 ,0x0 ,0x0 };
drivers/staging/r8188eu/include/rtw_iol.h +2 -4
@@ -45,12 +45,10 @@ int rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value, u8 mask);int rtw_IOL_append_WW_cmd (struct xmit_frame *xmit_frame,u16 addr,u16 value,u16 mask); -int _rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr, -u32 value,u32 mask); +int rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr, +u32 value,u32 mask);int _rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path,u16 addr,u32 value,u32 mask); -#define rtw_IOL_append_WD_cmd (xmit_frame, addr, value, mask) \ - _rtw_IOL_append_WD_cmd((xmit_frame), (addr), (value), (mask))#define rtw_IOL_append_WRF_cmd (xmit_frame, rf_path, addr, value, mask) \ _rtw_IOL_append_WRF_cmd((xmit_frame),(rf_path), (addr), (value), (mask))
Signature · 1 line
2.34.1
PATCH v2 4/4 staging: r8188eu: call rtw_IOL_append_WRF_cmd directly
In reply to daniel watsonFrom: Daniel Watson <[email protected]>
Call rtw_IOL_append_WRF_cmd directly, instead of using wrapper macro.
Delete wrapper macro, which is not needed.
---
Changes in v2:
- Make the commit message clearer
Note: This code has not been run on hardware.
drivers/staging/r8188eu/core/rtw_iol.c | 2 +- drivers/staging/r8188eu/include/rtw_iol.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-)
drivers/staging/r8188eu/core/rtw_iol.c +1 -1
@@ -109,7 +109,7 @@ int rtw_IOL_append_WD_cmd(struct xmit_frame *xmit_frame, u16 addr, u32 value, u3return rtw_IOL_append_cmds (xmit_frame, (u8 *)&cmd, cmd.length); } -int _rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path,u16 addr,u32 value,u32 mask) +int rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path,u16 addr,u32 value,u32 mask) {struct ioreg_cfg cmd = {8 ,IOREG_CMD_W_RF ,0x0 ,0x0 ,0x0 };
drivers/staging/r8188eu/include/rtw_iol.h +2 -4
@@ -47,10 +47,8 @@ int rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value, u16 mask);int rtw_IOL_append_WD_cmd (struct xmit_frame *xmit_frame,u16 addr,u32 value,u32 mask); -int _rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path, -u16 addr,u32 value,u32 mask); -#define rtw_IOL_append_WRF_cmd (xmit_frame, rf_path, addr, value, mask) \ - _rtw_IOL_append_WRF_cmd((xmit_frame),(rf_path), (addr), (value), (mask)) +int rtw_IOL_append_WRF_cmd (struct xmit_frame *xmit_frame,u8 rf_path, +u16 addr,u32 value,u32 mask);u8 rtw_IOL_cmd_boundary_handle (struct xmit_frame *pxmit_frame);
Signature · 1 line
2.34.1
Quoted 11 lines · daniel watson
From: Daniel Watson <[email protected]>
This patchset calls the rtw_IOL_append_*_cmd group of functions directly and removes the #define wrappers.
Daniel Watson (4):
staging: r8188eu: callrtw_IOL_append_WB_cmddirectly
staging: r8188eu: callrtw_IOL_append_WW_cmddirectly
staging: r8188eu: callrtw_IOL_append_WD_cmddirectly
staging: r8188eu: callrtw_IOL_append_WRF_cmddirectly
Looks good, thanks!
regards,
dan carpenter
Quoted 7 lines · Dan Carpenter
Quoted 5 lines · daniel watson
From: Daniel Watson <[email protected]>
This patchset calls the rtw_IOL_append_*_cmd group of functions directly and removes the #define wrappers.
Quoted 7 lines
Looks good, thanks!
Reviewed-by Dan Carpenter <[email protected]>regards,
dan carpenter
Thanks! I noticed a typo in the first commit message. I'll send a v3 to fix it.