* [PATCH 0/4] remove wrappers on _rtw_IOL_append_*_cmd
@ 2022-06-14 2:07 daniel watson
2022-06-14 2:07 ` [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd daniel watson
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: daniel watson @ 2022-06-14 2:07 UTC (permalink / raw)
To: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
Cc: Daniel Watson
From: Daniel Watson <ozzloy@challenge-bot.com>
This patchset removes the #define wrappers around the
rtl_IOL_append_*_cmd group of functions. They are not needed.
Daniel Watson (4):
staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd
staging: r8188eu: remove leading '_' on _rtw_IOL_append_WW_cmd
staging: r8188eu: remove leading '_' on _rtw_IOL_append_WD_cmd
staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd
drivers/staging/r8188eu/core/rtw_iol.c | 8 ++++----
drivers/staging/r8188eu/include/rtw_iol.h | 24 ++++++++---------------
2 files changed, 12 insertions(+), 20 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd
2022-06-14 2:07 [PATCH 0/4] remove wrappers on _rtw_IOL_append_*_cmd daniel watson
@ 2022-06-14 2:07 ` daniel watson
2022-06-14 14:42 ` Dan Carpenter
2022-06-14 2:07 ` [PATCH 2/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WW_cmd daniel watson
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: daniel watson @ 2022-06-14 2:07 UTC (permalink / raw)
To: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
Cc: Daniel Watson
From: Daniel Watson <ozzloy@challenge-bot.com>
name the function rtw_IOL_append_WB_cmd and call it directly,
instead of using wrapper macro
delete wrapper macro, which is not needed
NOTE: code compiles, not tested on hardware
Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
---
drivers/staging/r8188eu/core/rtw_iol.c | 2 +-
drivers/staging/r8188eu/include/rtw_iol.h | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/r8188eu/core/rtw_iol.c b/drivers/staging/r8188eu/core/rtw_iol.c
index af8e84a41b851..8c990b1af5a70 100644
--- a/drivers/staging/r8188eu/core/rtw_iol.c
+++ b/drivers/staging/r8188eu/core/rtw_iol.c
@@ -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};
diff --git a/drivers/staging/r8188eu/include/rtw_iol.h b/drivers/staging/r8188eu/include/rtw_iol.h
index fb88ebc1dabb1..a648f9ba50a62 100644
--- a/drivers/staging/r8188eu/include/rtw_iol.h
+++ b/drivers/staging/r8188eu/include/rtw_iol.h
@@ -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) \
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WW_cmd
2022-06-14 2:07 [PATCH 0/4] remove wrappers on _rtw_IOL_append_*_cmd daniel watson
2022-06-14 2:07 ` [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd daniel watson
@ 2022-06-14 2:07 ` daniel watson
2022-06-14 2:07 ` [PATCH 3/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WD_cmd daniel watson
2022-06-14 2:07 ` [PATCH 4/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd daniel watson
3 siblings, 0 replies; 7+ messages in thread
From: daniel watson @ 2022-06-14 2:07 UTC (permalink / raw)
To: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
Cc: Daniel Watson
From: Daniel Watson <ozzloy@challenge-bot.com>
name the function rtw_IOL_append_WW_cmd and call it directly,
instead of using wrapper macro
delete wrapper macro, which is not needed
NOTE: code compiles, not tested on hardware
Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
---
drivers/staging/r8188eu/core/rtw_iol.c | 2 +-
drivers/staging/r8188eu/include/rtw_iol.h | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/r8188eu/core/rtw_iol.c b/drivers/staging/r8188eu/core/rtw_iol.c
index 8c990b1af5a70..7292bab126074 100644
--- a/drivers/staging/r8188eu/core/rtw_iol.c
+++ b/drivers/staging/r8188eu/core/rtw_iol.c
@@ -81,7 +81,7 @@ int rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value, u8
return 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};
diff --git a/drivers/staging/r8188eu/include/rtw_iol.h b/drivers/staging/r8188eu/include/rtw_iol.h
index a648f9ba50a62..c99d7d5151099 100644
--- a/drivers/staging/r8188eu/include/rtw_iol.h
+++ b/drivers/staging/r8188eu/include/rtw_iol.h
@@ -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) \
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WD_cmd
2022-06-14 2:07 [PATCH 0/4] remove wrappers on _rtw_IOL_append_*_cmd daniel watson
2022-06-14 2:07 ` [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd daniel watson
2022-06-14 2:07 ` [PATCH 2/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WW_cmd daniel watson
@ 2022-06-14 2:07 ` daniel watson
2022-06-14 2:07 ` [PATCH 4/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd daniel watson
3 siblings, 0 replies; 7+ messages in thread
From: daniel watson @ 2022-06-14 2:07 UTC (permalink / raw)
To: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
Cc: Daniel Watson
From: Daniel Watson <ozzloy@challenge-bot.com>
name the function rtw_IOL_append_WD_cmd and call it directly,
instead of using wrapper macro
delete wrapper macro, which is not needed
NOTE: code compiles, not tested on hardware
Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
---
drivers/staging/r8188eu/core/rtw_iol.c | 2 +-
drivers/staging/r8188eu/include/rtw_iol.h | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/r8188eu/core/rtw_iol.c b/drivers/staging/r8188eu/core/rtw_iol.c
index 7292bab126074..b7ee3833c908c 100644
--- a/drivers/staging/r8188eu/core/rtw_iol.c
+++ b/drivers/staging/r8188eu/core/rtw_iol.c
@@ -95,7 +95,7 @@ int rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value, u1
return 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};
diff --git a/drivers/staging/r8188eu/include/rtw_iol.h b/drivers/staging/r8188eu/include/rtw_iol.h
index c99d7d5151099..9ad467759ef1c 100644
--- a/drivers/staging/r8188eu/include/rtw_iol.h
+++ b/drivers/staging/r8188eu/include/rtw_iol.h
@@ -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))
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd
2022-06-14 2:07 [PATCH 0/4] remove wrappers on _rtw_IOL_append_*_cmd daniel watson
` (2 preceding siblings ...)
2022-06-14 2:07 ` [PATCH 3/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WD_cmd daniel watson
@ 2022-06-14 2:07 ` daniel watson
2022-06-14 14:47 ` Dan Carpenter
3 siblings, 1 reply; 7+ messages in thread
From: daniel watson @ 2022-06-14 2:07 UTC (permalink / raw)
To: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
Cc: Daniel Watson
From: Daniel Watson <ozzloy@challenge-bot.com>
name the function rtw_IOL_append_WRF_cmd and call it directly,
instead of using wrapper macro
delete wrapper macro, which is not needed
NOTE: code compiles, not tested on hardware
Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd
call rtw_IOL_append_WRF_cmd directly instead of using wrapper macro
delete wrapper macro, which is not needed
NOTE: code compiles, not tested on hardware
Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
---
drivers/staging/r8188eu/core/rtw_iol.c | 2 +-
drivers/staging/r8188eu/include/rtw_iol.h | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/r8188eu/core/rtw_iol.c b/drivers/staging/r8188eu/core/rtw_iol.c
index b7ee3833c908c..31e196ccd899a 100644
--- a/drivers/staging/r8188eu/core/rtw_iol.c
+++ b/drivers/staging/r8188eu/core/rtw_iol.c
@@ -109,7 +109,7 @@ int rtw_IOL_append_WD_cmd(struct xmit_frame *xmit_frame, u16 addr, u32 value, u3
return 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};
diff --git a/drivers/staging/r8188eu/include/rtw_iol.h b/drivers/staging/r8188eu/include/rtw_iol.h
index 9ad467759ef1c..099f5a075274c 100644
--- a/drivers/staging/r8188eu/include/rtw_iol.h
+++ b/drivers/staging/r8188eu/include/rtw_iol.h
@@ -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);
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd
2022-06-14 2:07 ` [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd daniel watson
@ 2022-06-14 14:42 ` Dan Carpenter
0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2022-06-14 14:42 UTC (permalink / raw)
To: daniel watson
Cc: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
On Mon, Jun 13, 2022 at 07:07:30PM -0700, daniel watson wrote:
> From: Daniel Watson <ozzloy@challenge-bot.com>
>
> name the function rtw_IOL_append_WB_cmd and call it directly,
> instead of using wrapper macro
>
> delete wrapper macro, which is not needed
>
> NOTE: code compiles, not tested on hardware
Don't put this kind of comment in the commit message. Put it under the
--- cut off line.
>
> Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
> ---
^^^
Here.
You don't even really need to tell us that you compiled the code,
because we take that as a given.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd
2022-06-14 2:07 ` [PATCH 4/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd daniel watson
@ 2022-06-14 14:47 ` Dan Carpenter
0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2022-06-14 14:47 UTC (permalink / raw)
To: daniel watson
Cc: Larry Finger, Phillip Potter, Greg Kroah-Hartman, linux-staging,
linux-kernel
On Mon, Jun 13, 2022 at 07:07:33PM -0700, daniel watson wrote:
> From: Daniel Watson <ozzloy@challenge-bot.com>
>
> name the function rtw_IOL_append_WRF_cmd and call it directly,
^^^^^^^^
Where is the first part of the sentence?
> instead of using wrapper macro
>
> delete wrapper macro, which is not needed
>
> NOTE: code compiles, not tested on hardware
>
> Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
>
> staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd
>
> call rtw_IOL_append_WRF_cmd directly instead of using wrapper macro
This is a better commit message but use a capital C "Call".
> delete wrapper macro, which is not needed
>
> NOTE: code compiles, not tested on hardware
>
> Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
You have the commit message twice.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-06-14 14:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 2:07 [PATCH 0/4] remove wrappers on _rtw_IOL_append_*_cmd daniel watson
2022-06-14 2:07 ` [PATCH 1/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WB_cmd daniel watson
2022-06-14 14:42 ` Dan Carpenter
2022-06-14 2:07 ` [PATCH 2/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WW_cmd daniel watson
2022-06-14 2:07 ` [PATCH 3/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WD_cmd daniel watson
2022-06-14 2:07 ` [PATCH 4/4] staging: r8188eu: remove leading '_' on _rtw_IOL_append_WRF_cmd daniel watson
2022-06-14 14:47 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).