public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lars Lindley <lindley@coyote.org>
To: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: greg KH <gregkh@suse.de>, Greg KH <greg@kroah.com>,
	Pavel Machek <pavel@ucw.cz>,
	devel@driverdev.osuosl.org,
	kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging: winbond: localpara.h whitespace and indentation fixes.
Date: Fri, 19 Mar 2010 00:00:59 +0100	[thread overview]
Message-ID: <4BA2B0AB.4070607@coyote.org> (raw)
In-Reply-To: <4BA25348.1080308@cs.helsinki.fi>

On 2010-03-18 17:22, Pekka Enberg wrote:
> Lars Lindley wrote:
>> +/* refer Bitmap2RateValue table */
>> +#define LOCAL_ALL_SUPPORTED_RATES_BITMAP    0x130c1a66 /*
>> +                                * the bitmap value
>> +                                * of all the H/W
>> +                                * supported rates:
>> +                                * 1, 2, 5.5, 11,
>> +                                * 6, 9, 12, 18,
>> +                                * 24, 36, 48, 54
>> +                                */
> 
> The comments look funny. You might want to move them above the #defines.
>
>> +    u8    region;        /* real region setting of the device */
>> +    u8    Reserved_1[2];
>> +
>> +/* power-save variables */
> 
> I think this wants to be moved one indentation level to the right.
> 
Ok here's a patch that applies over the old one to fix this..
Hope it looks all right.. :)

/Lars 



[PATCH] staging: winbond: localpara.h Moved around some comments

I moved some comments after pointers from Pekka Enberg.

Signed-off-by: Lars Lindley <lindley@coyote.org>
---
 drivers/staging/winbond/localpara.h |   50 ++++++++++++++---------------------
 1 files changed, 20 insertions(+), 30 deletions(-)

diff --git a/drivers/staging/winbond/localpara.h b/drivers/staging/winbond/localpara.h
index f1e6b50..d798057 100644
--- a/drivers/staging/winbond/localpara.h
+++ b/drivers/staging/winbond/localpara.h
@@ -47,23 +47,13 @@
 #define BAND_TYPE_OFDM_5		2
 
 /* refer Bitmap2RateValue table */
-#define LOCAL_ALL_SUPPORTED_RATES_BITMAP	0x130c1a66 /*
-							    * the bitmap value
-							    * of all the H/W
-							    * supported rates:
-							    * 1, 2, 5.5, 11,
-							    * 6, 9, 12, 18,
-							    * 24, 36, 48, 54
-							    */
-#define LOCAL_OFDM_SUPPORTED_RATES_BITMAP	0x130c1240 /*
-							    * the bitmap value
-							    * of all the H/W
-							    * supported rates
-							    * except to non-OFDM
-							    * rates:
-							    * 6, 9, 12, 18,
-							    * 24, 36, 48, 54
-							    */
+
+/* the bitmap value of all the H/W supported rates: */
+/* 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54 */
+#define LOCAL_ALL_SUPPORTED_RATES_BITMAP	0x130c1a66
+/* the bitmap value of all the H/W supported rates except to non-OFDM rates: */
+/* 6, 9, 12, 18, 24, 36, 48, 54 */
+#define LOCAL_OFDM_SUPPORTED_RATES_BITMAP	0x130c1240
 #define LOCAL_11B_SUPPORTED_RATE_BITMAP		0x826
 #define LOCAL_11B_BASIC_RATE_BITMAP		0x826
 #define LOCAL_11B_OPERATION_RATE_BITMAP		0x826
@@ -143,7 +133,7 @@ struct wb_local_para {
 	u8	region;		/* real region setting of the device */
 	u8	Reserved_1[2];
 
-/* power-save variables */
+	/* power-save variables */
 	u8	iPowerSaveMode; /* 0 indicates on, 1 indicates off */
 	u8	ATIMmode;
 	u8	ExcludeUnencrypted;
@@ -152,7 +142,7 @@ struct wb_local_para {
 	u8	boHasTxActivity;/* tx activity has occurred */
 	u8	boMacPsValid;	/* Power save mode obtained from H/W is valid or not */
 
-/* Rate */
+	/* Rate */
 	u8	TxRateMode; /*
 			     * Initial, input from Registry,
 			     * may be updated by GUI
@@ -166,7 +156,7 @@ struct wb_local_para {
 					 */
 	u8	CurrentTxFallbackRate;
 
-/* for Rate handler */
+	/* for Rate handler */
 	u8	BRateSet[32];		/* basic rate set */
 	u8	SRateSet[32];		/* support rate set */
 
@@ -180,7 +170,7 @@ struct wb_local_para {
 	u32	dwSupportRateBitmap;	/* bit map of all support rates including basic and operational rates */
 
 
-/* For SME/MLME handler */
+	/* For SME/MLME handler */
 
 	u16	wOldSTAindex;		/* valid when boHandover=TRUE, store old connected STA index */
 	u16	wConnectedSTAindex;	/* Index of peerly connected AP or IBSS in the descriptionset. */
@@ -204,7 +194,7 @@ struct wb_local_para {
 	u8	CWMin;			/* 255: set according to 802.11 spec. */
 	u8	reserved2;
 
-/* 11G: */
+	/* 11G: */
 	u8	bMacOperationMode;	/* operation in 802.11b or 802.11g */
 	u8	bSlotTimeMode;		/* AUTO, s32 */
 	u8	bPreambleMode;		/* AUTO, s32 */
@@ -218,11 +208,11 @@ struct wb_local_para {
 	u32	RSN_IE_Bitmap;
 	u32	RSN_OUI_Type;
 
-/* For the BSSID */
+	/* For the BSSID */
 	u8	HwBssid[MAC_ADDR_LENGTH + 2];
 	u32	HwBssidValid;
 
-/* For scan list */
+	/* For scan list */
 	u8	BssListCount;		/* Total count of valid descriptor indexes */
 	u8	boReceiveUncorrectInfo;	/* important settings in beacon/probe resp. have been changed */
 	u8	NoOfJoinerInIbss;
@@ -238,7 +228,7 @@ struct wb_local_para {
 	 */
 	u8	JoinerInIbss[(MAX_BSS_DESCRIPT_ELEMENT + 3) & ~0x03];
 
-/* General Statistics, count at Rx_handler or Tx_callback interrupt handler */
+	/* General Statistics, count at Rx_handler or Tx_callback interrupt handler */
 	u64	GS_XMIT_OK;		/* Good Frames Transmitted */
 	u64	GS_RCV_OK;		/* Good Frames Received */
 	u32	GS_RCV_ERROR;		/* Frames received with crc error */
@@ -247,11 +237,11 @@ struct wb_local_para {
 	u32	GS_XMIT_ONE_COLLISION;	/* one collision */
 	u32	GS_XMIT_MORE_COLLISIONS;/* more collisions */
 
-/*
- * ================================================================
- * Statistics (no matter whether it had done successfully) -wkchen
- * ================================================================
- */
+	/*
+	 * ================================================================
+	 * Statistics (no matter whether it had done successfully) -wkchen
+	 * ================================================================
+	 */
 	u32	_NumRxMSDU;
 	u32	_NumTxMSDU;
 	u32	_dot11WEPExcludedCount;
-- 
1.7.0.2

  reply	other threads:[~2010-03-18 23:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16  8:21 [PATCH] staging: winbond: localpara.h whitespace and indentation fixes Lars Lindley
2010-03-18 16:22 ` Pekka Enberg
2010-03-18 23:00   ` Lars Lindley [this message]
2010-03-19  5:45     ` Pekka Enberg
2010-03-21  6:58     ` Pavel Machek
2010-04-28 22:50     ` Greg KH
2010-05-02  8:34       ` Lars Lindley
2010-05-03 18:45         ` Greg KH
2010-05-08 12:53           ` Lars Lindley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BA2B0AB.4070607@coyote.org \
    --to=lindley@coyote.org \
    --cc=devel@driverdev.osuosl.org \
    --cc=greg@kroah.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=penberg@cs.helsinki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox