[PATCH 03/11] video: omap: fix coding style on use of spaces

Dario Binacchi dariobin at libero.it
Sun Feb 9 19:47:36 CET 2020


Use one space around (on each side of) the binary '-' operator.

Signed-off-by: Dario Binacchi <dariobin at libero.it>
---

 drivers/video/am335x-fb.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c
index ed445546ec..17476f5b72 100644
--- a/drivers/video/am335x-fb.c
+++ b/drivers/video/am335x-fb.c
@@ -40,21 +40,21 @@
 #define LCD_DMA_BURST_8				0x3
 #define LCD_DMA_BURST_16			0x4
 /* LCD Timing_0 Register */
-#define LCD_HBPLSB(x)				((((x)-1) & 0xFF) << 24)
-#define LCD_HFPLSB(x)				((((x)-1) & 0xFF) << 16)
-#define LCD_HSWLSB(x)				((((x)-1) & 0x3F) << 10)
-#define LCD_HORLSB(x)				(((((x) >> 4)-1) & 0x3F) << 4)
-#define LCD_HORMSB(x)				(((((x) >> 4)-1) & 0x40) >> 4)
+#define LCD_HBPLSB(x)				((((x) - 1) & 0xFF) << 24)
+#define LCD_HFPLSB(x)				((((x) - 1) & 0xFF) << 16)
+#define LCD_HSWLSB(x)				((((x) - 1) & 0x3F) << 10)
+#define LCD_HORLSB(x)				(((((x) >> 4) - 1) & 0x3F) << 4)
+#define LCD_HORMSB(x)				(((((x) >> 4) - 1) & 0x40) >> 4)
 /* LCD Timing_1 Register */
 #define LCD_VBP(x)				(((x) & 0xFF) << 24)
 #define LCD_VFP(x)				(((x) & 0xFF) << 16)
 #define LCD_VSW(x)				((((x) - 1) & 0x3F) << 10)
-#define LCD_VERLSB(x)				(((x)-1) & 0x3FF)
+#define LCD_VERLSB(x)				(((x) - 1) & 0x3FF)
 /* LCD Timing_2 Register */
-#define LCD_HSWMSB(x)				((((x)-1) & 0x3C0) << 21)
-#define LCD_VERMSB(x)				((((x)-1) & 0x400) << 16)
-#define LCD_HBPMSB(x)				((((x)-1) & 0x300) >> 4)
-#define LCD_HFPMSB(x)				((((x)-1) & 0x300) >> 8)
+#define LCD_HSWMSB(x)				((((x) - 1) & 0x3C0) << 21)
+#define LCD_VERMSB(x)				((((x) - 1) & 0x400) << 16)
+#define LCD_HBPMSB(x)				((((x) - 1) & 0x300) >> 4)
+#define LCD_HFPMSB(x)				((((x) - 1) & 0x300) >> 8)
 #define LCD_INVMASK(x)				((x) & 0x3F00000)
 /* LCD Raster Ctrl Register */
 #define LCD_TFT_24BPP_MODE			BIT(25)
-- 
2.24.0



More information about the U-Boot mailing list