staging: nvec: Add space around '<<'
PATCH 1/2 staging: nvec: Add space around '<<'
Add space around operator '<<'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '<<' (ctx:VxV)
Signed-off-by Burcin Akalin <[email protected]>
--- drivers/staging/nvec/nvec.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/staging/nvec/nvec.c +9 -9
@@ -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
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"
Signed-off-by Burcin Akalin <[email protected]>
--- drivers/staging/nvec/nvec.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/nvec/nvec.c +0 -1
@@ -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
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"
Signed-off-by Burcin Akalin <[email protected]>---
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