Skip to content

Commit b5b2e00

Browse files
Franziska Naepelttmlind
authored andcommitted
ARM: omap: Fix checkpatch issues
This removes the following checkpatch issues: - ERROR: space required after that ',' (ctx:VxV) - WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Franziska Naepelt <[email protected]> Message-Id: <[email protected]> [[email protected]: add space also around '-' in addition to ','] Signed-off-by: Tony Lindgren <[email protected]>
1 parent ac9a786 commit b5b2e00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/arm/mach-omap1/sram-init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#define OMAP1_SRAM_PA 0x20000000
2525
#define SRAM_BOOTLOADER_SZ 0x80
26-
#define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1)))
26+
#define ROUND_DOWN(value, boundary) ((value) & (~((boundary) - 1)))
2727

2828
static void __iomem *omap_sram_base;
2929
static unsigned long omap_sram_start;

arch/arm/mach-omap2/sram.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
#define GP_DEVICE 0x300
4747

48-
#define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1)))
48+
#define ROUND_DOWN(value, boundary) ((value) & (~((boundary) - 1)))
4949

5050
static unsigned long omap_sram_start;
5151
static unsigned long omap_sram_size;
@@ -118,7 +118,7 @@ static void omap_sram_reset(void)
118118
*/
119119
static int is_sram_locked(void)
120120
{
121-
if (OMAP2_DEVICE_TYPE_GP == omap_type()) {
121+
if (omap_type() == OMAP2_DEVICE_TYPE_GP) {
122122
/* RAMFW: R/W access to all initiators for all qualifier sets */
123123
if (cpu_is_omap242x()) {
124124
writel_relaxed(0xFF, OMAP24XX_VA_REQINFOPERM0); /* all q-vects */

0 commit comments

Comments
 (0)