Skip to contentSkip to conversation

Staging: olpc_dcon: Add space around '<<'

PATCH In review Dilek Uzulmez 2 participants 2 messages Mar 13, 2016 – Mar 22, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: olpc_dcon: Add space around '<<'

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

---
 drivers/staging/olpc_dcon/olpc_dcon.h | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)
drivers/staging/olpc_dcon/olpc_dcon.h +15 -15
index d06e19d..ca29ac9 100644
@@ -9,18 +9,18 @@
 #define DCON_REG_ID		 0
 #define DCON_REG_MODE		 1
 
-#define MODE_PASSTHRU	(1<<0)
-#define MODE_SLEEP	(1<<1)
-#define MODE_SLEEP_AUTO	(1<<2)
-#define MODE_BL_ENABLE	(1<<3)
-#define MODE_BLANK	(1<<4)
-#define MODE_CSWIZZLE	(1<<5)
-#define MODE_COL_AA	(1<<6)
-#define MODE_MONO_LUMA	(1<<7)
-#define MODE_SCAN_INT	(1<<8)
-#define MODE_CLOCKDIV	(1<<9)
-#define MODE_DEBUG	(1<<14)
-#define MODE_SELFTEST	(1<<15)
+#define MODE_PASSTHRU	(1 << 0)
+#define MODE_SLEEP	(1 << 1)
+#define MODE_SLEEP_AUTO	(1 << 2)
+#define MODE_BL_ENABLE	(1 << 3)
+#define MODE_BLANK	(1 << 4)
+#define MODE_CSWIZZLE	(1 << 5)
+#define MODE_COL_AA	(1 << 6)
+#define MODE_MONO_LUMA	(1 << 7)
+#define MODE_SCAN_INT	(1 << 8)
+#define MODE_CLOCKDIV	(1 << 9)
+#define MODE_DEBUG	(1 << 14)
+#define MODE_SELFTEST	(1 << 15)
 
 #define DCON_REG_HRES		0x2
 #define DCON_REG_HTOTAL		0x3
@@ -35,11 +35,11 @@
 #define DCON_REG_MEM_OPT_B	0x42
 
 /* Load Delay Locked Loop (DLL) settings for clock delay */
-#define MEM_DLL_CLOCK_DELAY	(1<<0)
+#define MEM_DLL_CLOCK_DELAY	(1 << 0)
 /* Memory controller power down function */
-#define MEM_POWER_DOWN		(1<<8)
+#define MEM_POWER_DOWN		(1 << 8)
 /* Memory controller software reset */
-#define MEM_SOFT_RESET		(1<<0)
+#define MEM_SOFT_RESET		(1 << 0)
 
 /* Status values */
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 7 lines · Dilek Uzulmez

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

---
 drivers/staging/olpc_dcon/olpc_dcon.h | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

This driver is no longer even in the kernel tree :(

Please be sure to always work from the correct branch.

thanks,

greg k-h