[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 04/17] aspeed/sdmc: fix coding style
From: |
Jamin Lin |
Subject: |
[PATCH v5 04/17] aspeed/sdmc: fix coding style |
Date: |
Tue, 4 Jun 2024 13:44:25 +0800 |
Fix coding style issues from checkpatch.pl
Test command:
scripts/checkpatch.pl --no-tree -f hw/misc/aspeed_sdmc.c
Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
---
hw/misc/aspeed_sdmc.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c
index 74279bbe8e..873d67c592 100644
--- a/hw/misc/aspeed_sdmc.c
+++ b/hw/misc/aspeed_sdmc.c
@@ -296,7 +296,8 @@ static void aspeed_2400_sdmc_write(AspeedSDMCState *s,
uint32_t reg,
uint32_t data)
{
if (reg == R_PROT) {
- s->regs[reg] = (data == PROT_KEY_UNLOCK) ? PROT_UNLOCKED :
PROT_SOFTLOCKED;
+ s->regs[reg] =
+ (data == PROT_KEY_UNLOCK) ? PROT_UNLOCKED : PROT_SOFTLOCKED;
return;
}
@@ -354,7 +355,8 @@ static void aspeed_2500_sdmc_write(AspeedSDMCState *s,
uint32_t reg,
uint32_t data)
{
if (reg == R_PROT) {
- s->regs[reg] = (data == PROT_KEY_UNLOCK) ? PROT_UNLOCKED :
PROT_SOFTLOCKED;
+ s->regs[reg] =
+ (data == PROT_KEY_UNLOCK) ? PROT_UNLOCKED : PROT_SOFTLOCKED;
return;
}
@@ -434,8 +436,9 @@ static void aspeed_2600_sdmc_write(AspeedSDMCState *s,
uint32_t reg,
}
if (s->regs[R_PROT] == PROT_HARDLOCKED) {
- qemu_log_mask(LOG_GUEST_ERROR, "%s: SDMC is locked until system
reset!\n",
- __func__);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "%s: SDMC is locked until system reset!\n",
+ __func__);
return;
}
--
2.25.1
- [PATCH v5 00/17] Add AST2700 support, Jamin Lin, 2024/06/04
- [PATCH v5 01/17] aspeed/wdt: Add AST2700 support, Jamin Lin, 2024/06/04
- [PATCH v5 02/17] aspeed/sli: Add AST2700 support, Jamin Lin, 2024/06/04
- [PATCH v5 03/17] aspeed/sdmc: remove redundant macros, Jamin Lin, 2024/06/04
- [PATCH v5 04/17] aspeed/sdmc: fix coding style,
Jamin Lin <=
- [PATCH v5 05/17] aspeed/sdmc: Add AST2700 support, Jamin Lin, 2024/06/04
- [PATCH v5 06/17] aspeed/smc: correct device description, Jamin Lin, 2024/06/04
- [PATCH v5 07/17] aspeed/smc: support dma start length and 1 byte length unit, Jamin Lin, 2024/06/04
- [PATCH v5 08/17] aspeed/smc: support 64 bits dma dram address, Jamin Lin, 2024/06/04
- [PATCH v5 09/17] aspeed/smc: support different memory region ops for SMC flash region, Jamin Lin, 2024/06/04
- [PATCH v5 10/17] aspeed/smc: Add AST2700 support, Jamin Lin, 2024/06/04
- [PATCH v5 11/17] aspeed/scu: Add AST2700 support, Jamin Lin, 2024/06/04