From patchwork Sun Feb 9 18:47:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 236077 List-Id: U-Boot discussion From: dariobin at libero.it (Dario Binacchi) Date: Sun, 9 Feb 2020 19:47:36 +0100 Subject: [PATCH 03/11] video: omap: fix coding style on use of spaces In-Reply-To: <20200209184745.20473-1-dariobin@libero.it> References: <20200209184745.20473-1-dariobin@libero.it> Message-ID: <20200209184745.20473-4-dariobin@libero.it> Use one space around (on each side of) the binary '-' operator. Signed-off-by: Dario Binacchi --- 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)