Skip to contentSkip to conversation

staging: nvec: Add space around '<<'

PATCH In review Burcin Akalin 2 participants 3 messages Oct 29, 2015 – Oct 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: nvec: Add space around '<<'

Add space around operator '<<'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '<<' (ctx:VxV)

---
 drivers/staging/nvec/nvec.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/staging/nvec/nvec.c +9 -9
index 164634d..aab1c85 100644
@@ -40,18 +40,18 @@
 #include "nvec.h"
 
 #define I2C_CNFG			0x00
-#define I2C_CNFG_PACKET_MODE_EN		(1<<10)
-#define I2C_CNFG_NEW_MASTER_SFM		(1<<11)
+#define I2C_CNFG_PACKET_MODE_EN		(1 << 10)
+#define I2C_CNFG_NEW_MASTER_SFM		(1 << 11)
 #define I2C_CNFG_DEBOUNCE_CNT_SHIFT	12
 
 #define I2C_SL_CNFG		0x20
-#define I2C_SL_NEWSL		(1<<2)
-#define I2C_SL_NACK		(1<<1)
-#define I2C_SL_RESP		(1<<0)
-#define I2C_SL_IRQ		(1<<3)
-#define END_TRANS		(1<<4)
-#define RCVD			(1<<2)
-#define RNW			(1<<1)
+#define I2C_SL_NEWSL		(1 << 2)
+#define I2C_SL_NACK		(1 << 1)
+#define I2C_SL_RESP		(1 << 0)
+#define I2C_SL_IRQ		(1 << 3)
+#define END_TRANS		(1 << 4)
+#define RCVD			(1 << 2)
+#define RNW			(1 << 1)
 
 #define I2C_SL_RCVD		0x24
 #define I2C_SL_STATUS		0x28
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 staging: nvec: Do not use multiple blank lines.

Remove multiple blank lines. Problem found using checkpatch.pl "CHECK: Please don't use multiple blank lines"

---
 drivers/staging/nvec/nvec.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/nvec/nvec.c +0 -1
index aab1c85..2cc0efc 100644
@@ -710,7 +710,6 @@ static irqreturn_t nvec_interrupt(int irq, void *dev)
 		status & RCVD ? " RCVD" : "",
 		status & RNW ? " RNW" : "");
 
-
 	/*
 	 * TODO: A correct fix needs to be found for this.
 	 *
Signature · 1 line
1.9.1
#2 lore raw

Re: [Outreachy kernel] [PATCH 2/2] staging: nvec: Do not use multiple blank lines.

Quoted 5 lines · Burcin Akalin

Remove multiple blank lines. Problem found using checkpatch.pl "CHECK: Please don't use multiple blank lines"

---

I am confused. You have sent this patch previously and it has already been accepted by Greg and has been applied by:
df2f4c4e4b79 ("staging: nvec: Do not use multiple blank lines.")

regards
sudip