Skip to contentSkip to conversation

drivers:staging:vt6655: Fix coding style issues

PATCH In review [email protected] 2 participants 2 messages Aug 28, 2015 – Sep 3, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers:staging:vt6655: Fix coding style issues

From: Sergey Lysanov <[email protected]>

This patch fixes the following issues reported by checkpatch.pl:
- code indent should use tabs where possible
- space prohibited before that ','

---
 drivers/staging/vt6655/rxtx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/vt6655/rxtx.c +3 -3
index 5875d65..64957de 100644
@@ -64,8 +64,8 @@
 /*---------------------  Static Functions  --------------------------*/
 
 /*---------------------  Static Definitions -------------------------*/
-#define CRITICAL_PACKET_LEN      256    /* if packet size < 256 -> in-direct send
-                                            packet size >= 256 -> direct send */
+#define CRITICAL_PACKET_LEN	256 /* if packet size < 256 -> in-direct send
+				     packet size >= 256 -> direct send */
 
 static const unsigned short wTimeStampOff[2][MAX_RATE] = {
 	{384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */
@@ -78,7 +78,7 @@ static const unsigned short wFB_Opt0[2][5] = {
 };
 static const unsigned short wFB_Opt1[2][5] = {
 	{RATE_12M, RATE_18M, RATE_24M, RATE_24M, RATE_36M}, /* fallback_rate0 */
-	{RATE_6M , RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
+	{RATE_6M, RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
 };
 
 #define RTSDUR_BB       0
Signature · 1 line
1.9.1
#1 lore raw
Quoted 27 lines · On Fri, Aug 28, 2015 at 01:51:44PM +0300, [email protected] wrote:

From: Sergey Lysanov <[email protected]>

This patch fixes the following issues reported by checkpatch.pl:
- code indent should use tabs where possible
- space prohibited before that ','

---
 drivers/staging/vt6655/rxtx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/vt6655/rxtx.c +2 -2
index 5875d65..64957de 100644
@@ -64,8 +64,8 @@
 /*---------------------  Static Functions  --------------------------*/
 
 /*---------------------  Static Definitions -------------------------*/
-#define CRITICAL_PACKET_LEN      256    /* if packet size < 256 -> in-direct send
-                                            packet size >= 256 -> direct send */
+#define CRITICAL_PACKET_LEN	256 /* if packet size < 256 -> in-direct send
+				     packet size >= 256 -> direct send */
 
 static const unsigned short wTimeStampOff[2][MAX_RATE] = {
 	{384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */

drivers/staging/vt6655/rxtx.c static const unsigned short wFB_Opt0[2][5] = { · line 81

Quoted 5 lines
drivers/staging/vt6655/rxtx.c +1 -1
@@ -78,7 +78,7 @@ static const unsigned short wFB_Opt0[2][5] = {
 };
 static const unsigned short wFB_Opt1[2][5] = {
 	{RATE_12M, RATE_18M, RATE_24M, RATE_24M, RATE_36M}, /* fallback_rate0 */
-	{RATE_6M , RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
+	{RATE_6M, RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */

The goal was to keep these aligned, which you broke the formatting for :(