diff options
author | Franziska Naepelt <franziska.naepelt@googlemail.com> | 2023-05-30 20:24:03 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2023-05-31 07:30:43 +0200 |
commit | b5b2e006c98f97f2c83aeeb6e7e8fb32198cc43a (patch) | |
tree | ee0a25343e7043d47cdbf0e42d5038b51282fa95 /arch/arm/mach-omap2 | |
parent | Linux 6.4-rc1 (diff) | |
download | linux-b5b2e006c98f97f2c83aeeb6e7e8fb32198cc43a.tar.xz linux-b5b2e006c98f97f2c83aeeb6e7e8fb32198cc43a.zip |
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 <franziska.naepelt@gmail.com>
Message-Id: <20230530182403.35646-1-franziska.naepelt@gmail.com>
[tony@atomide.com: add space also around '-' in addition to ',']
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/sram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/sram.c b/arch/arm/mach-omap2/sram.c index 815d390109d2..898b011ae8d9 100644 --- a/arch/arm/mach-omap2/sram.c +++ b/arch/arm/mach-omap2/sram.c @@ -45,7 +45,7 @@ #define GP_DEVICE 0x300 -#define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1))) +#define ROUND_DOWN(value, boundary) ((value) & (~((boundary) - 1))) static unsigned long omap_sram_start; static unsigned long omap_sram_size; @@ -118,7 +118,7 @@ static void omap_sram_reset(void) */ static int is_sram_locked(void) { - if (OMAP2_DEVICE_TYPE_GP == omap_type()) { + if (omap_type() == OMAP2_DEVICE_TYPE_GP) { /* RAMFW: R/W access to all initiators for all qualifier sets */ if (cpu_is_omap242x()) { writel_relaxed(0xFF, OMAP24XX_VA_REQINFOPERM0); /* all q-vects */ |