* [PATCH 1/5] Staging: vt6655: Fix line over 80 characters
2019-03-05 0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
@ 2019-03-05 0:23 ` Madhumitha Prabakaran
2019-03-05 0:24 ` [PATCH 2/5] " Madhumitha Prabakaran
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Madhumitha Prabakaran @ 2019-03-05 0:23 UTC (permalink / raw)
To: forest, gregkh, outreachy-kernel; +Cc: Madhumitha Prabakaran
Fix the warning issued by checkpatch.pl
WARNING: line over 80 characters
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/vt6655/card.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/vt6655/card.h b/drivers/staging/vt6655/card.h
index d71022aa3f86..6bbbbe1314d5 100644
--- a/drivers/staging/vt6655/card.h
+++ b/drivers/staging/vt6655/card.h
@@ -44,7 +44,8 @@ struct vnt_private;
void CARDvSetRSPINF(struct vnt_private *priv, u8 bb_type);
void CARDvUpdateBasicTopRate(struct vnt_private *priv);
bool CARDbIsOFDMinBasicRate(struct vnt_private *priv);
-void CARDvSetLoopbackMode(struct vnt_private *priv, unsigned short wLoopbackMode);
+void CARDvSetLoopbackMode(struct vnt_private *priv,
+ unsigned short wLoopbackMode);
bool CARDbSoftwareReset(struct vnt_private *priv);
void CARDvSetFirstNextTBTT(struct vnt_private *priv,
unsigned short wBeaconInterval);
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/5] Staging: vt6655: Fix line over 80 characters
2019-03-05 0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
2019-03-05 0:23 ` [PATCH 1/5] Staging: vt6655: Fix line over 80 characters Madhumitha Prabakaran
@ 2019-03-05 0:24 ` Madhumitha Prabakaran
2019-03-05 0:24 ` [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals Madhumitha Prabakaran
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Madhumitha Prabakaran @ 2019-03-05 0:24 UTC (permalink / raw)
To: forest, gregkh, outreachy-kernel; +Cc: Madhumitha Prabakaran
Fix the warning by checkpatch.pl
WARNING: line over 80 characters
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/vt6655/card.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/vt6655/card.h b/drivers/staging/vt6655/card.h
index 6bbbbe1314d5..490cecf8fb9d 100644
--- a/drivers/staging/vt6655/card.h
+++ b/drivers/staging/vt6655/card.h
@@ -62,6 +62,7 @@ bool CARDbRadioPowerOn(struct vnt_private *priv);
bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type);
bool CARDbUpdateTSF(struct vnt_private *priv, unsigned char byRxRate,
u64 qwBSSTimestamp);
-bool CARDbSetBeaconPeriod(struct vnt_private *priv, unsigned short wBeaconInterval);
+bool CARDbSetBeaconPeriod(struct vnt_private *priv,
+ unsigned short wBeaconInterval);
#endif /* __CARD_H__ */
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals
2019-03-05 0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
2019-03-05 0:23 ` [PATCH 1/5] Staging: vt6655: Fix line over 80 characters Madhumitha Prabakaran
2019-03-05 0:24 ` [PATCH 2/5] " Madhumitha Prabakaran
@ 2019-03-05 0:24 ` Madhumitha Prabakaran
2019-03-05 7:52 ` [Outreachy kernel] " Greg KH
2019-03-05 0:24 ` [PATCH 4/5] Staging: vt6655: Fix spelling mistake Madhumitha Prabakaran
` (2 subsequent siblings)
5 siblings, 1 reply; 8+ messages in thread
From: Madhumitha Prabakaran @ 2019-03-05 0:24 UTC (permalink / raw)
To: forest, gregkh, outreachy-kernel; +Cc: Madhumitha Prabakaran
Fix the warning by removing code between #if and #endif, as coding style
say the compiler will constant-fold the conditional away and include or
exclude the block of code as with an endif.
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/vt6655/power.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c
index d6c581b31569..c2a7c120a94d 100644
--- a/drivers/staging/vt6655/power.c
+++ b/drivers/staging/vt6655/power.c
@@ -64,7 +64,6 @@ PSvEnablePowerSaving(
} else {
/* set ATIM Window */
#if 0 /* TODO atim window */
- MACvWriteATIMW(priv->PortOffset, pMgmt->wCurrATIMWindow);
#endif
}
/* Set AutoSleep */
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [Outreachy kernel] [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals
2019-03-05 0:24 ` [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals Madhumitha Prabakaran
@ 2019-03-05 7:52 ` Greg KH
0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2019-03-05 7:52 UTC (permalink / raw)
To: Madhumitha Prabakaran; +Cc: forest, outreachy-kernel
On Mon, Mar 04, 2019 at 06:24:01PM -0600, Madhumitha Prabakaran wrote:
> Fix the warning by removing code between #if and #endif, as coding style
> say the compiler will constant-fold the conditional away and include or
> exclude the block of code as with an endif.
>
> Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
> ---
> drivers/staging/vt6655/power.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c
> index d6c581b31569..c2a7c120a94d 100644
> --- a/drivers/staging/vt6655/power.c
> +++ b/drivers/staging/vt6655/power.c
> @@ -64,7 +64,6 @@ PSvEnablePowerSaving(
> } else {
> /* set ATIM Window */
> #if 0 /* TODO atim window */
> - MACvWriteATIMW(priv->PortOffset, pMgmt->wCurrATIMWindow);
> #endif
> }
> /* Set AutoSleep */
When you removed this line, you then ended up with:
#if 0
#endif
which does not make much sense :)
As this is a "TODO" item, I would just leave this alone for now.
Hopefully someone will fix this correctly in the future.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 4/5] Staging: vt6655: Fix spelling mistake
2019-03-05 0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
` (2 preceding siblings ...)
2019-03-05 0:24 ` [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals Madhumitha Prabakaran
@ 2019-03-05 0:24 ` Madhumitha Prabakaran
2019-03-05 0:24 ` [PATCH 5/5] Staging: vt6655: Fix space around binary operator Madhumitha Prabakaran
2019-03-05 7:53 ` [Outreachy kernel] [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Greg KH
5 siblings, 0 replies; 8+ messages in thread
From: Madhumitha Prabakaran @ 2019-03-05 0:24 UTC (permalink / raw)
To: forest, gregkh, outreachy-kernel; +Cc: Madhumitha Prabakaran
Fix the check for spelling mistake
CHECK: 'Regsiter' may be misspelled - perhaps 'Register'
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/vt6655/rf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c
index 03b0d56dbe9e..825b6ab5c0de 100644
--- a/drivers/staging/vt6655/rf.c
+++ b/drivers/staging/vt6655/rf.c
@@ -163,7 +163,7 @@ static const unsigned long dwAL7230InitTable[CB_AL7230_INIT_SEQ] = {
0x841FF200 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* Need modify for 11a: 451FE2 */
0x3FDFA300 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* Need modify for 11a: 5FDFA3 */
0x7FD78400 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* 11b/g // Need modify for 11a */
- /* RoberYu:20050113, Rev0.47 Regsiter Setting Guide */
+ /* RoberYu:20050113, Rev0.47 Register Setting Guide */
0x802B5500 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* Need modify for 11a: 8D1B55 */
0x56AF3600 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW,
0xCE020700 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW, /* Need modify for 11a: 860207 */
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 5/5] Staging: vt6655: Fix space around binary operator
2019-03-05 0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
` (3 preceding siblings ...)
2019-03-05 0:24 ` [PATCH 4/5] Staging: vt6655: Fix spelling mistake Madhumitha Prabakaran
@ 2019-03-05 0:24 ` Madhumitha Prabakaran
2019-03-05 7:53 ` [Outreachy kernel] [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Greg KH
5 siblings, 0 replies; 8+ messages in thread
From: Madhumitha Prabakaran @ 2019-03-05 0:24 UTC (permalink / raw)
To: forest, gregkh, outreachy-kernel; +Cc: Madhumitha Prabakaran
Fix the check as per Linux kernel style for use of spaces
CHECK: spaces preferred around that '-'
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/vt6655/rf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c
index 825b6ab5c0de..fd09b9771cf5 100644
--- a/drivers/staging/vt6655/rf.c
+++ b/drivers/staging/vt6655/rf.c
@@ -792,7 +792,7 @@ bool RFbSetPower(
byDec = byPwr + 10;
if (byDec >= priv->byMaxPwrLevel)
- byDec = priv->byMaxPwrLevel-1;
+ byDec = priv->byMaxPwrLevel - 1;
byPwr = byDec;
break;
--
2.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [Outreachy kernel] [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues
2019-03-05 0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
` (4 preceding siblings ...)
2019-03-05 0:24 ` [PATCH 5/5] Staging: vt6655: Fix space around binary operator Madhumitha Prabakaran
@ 2019-03-05 7:53 ` Greg KH
5 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2019-03-05 7:53 UTC (permalink / raw)
To: Madhumitha Prabakaran; +Cc: forest, outreachy-kernel
On Mon, Mar 04, 2019 at 06:23:58PM -0600, Madhumitha Prabakaran wrote:
> These patches fix warning line over 80 characters, modify spelling
> error, fix warning about preprocessor conditionals and fix space around
> '-'.
>
> Madhumitha Prabakaran (5):
> Staging: vt6655: Fix line over 80 characters
> Staging: vt6655: Fix line over 80 characters
These two have the same subject line, yet do different things :(
Please fix up and resend the series (after dropping the one patch I
complained about.)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread