Skip to content

Commit 272881c

Browse files
committed
[ot] hw/opentitan: ot_flash: fix format
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent afba4b7 commit 272881c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hw/opentitan/ot_flash.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,10 +1402,10 @@ static void ot_flash_op_erase_bank(OtFlashState *s, unsigned address)
14021402
}
14031403

14041404
/*
1405-
* For bank erase only, if the data partition is selected, just the
1406-
* data partition is erased. If the info partition is selected, BOTH
1407-
* the data and info partitions are erased.
1408-
*/
1405+
* For bank erase only, if the data partition is selected, just the
1406+
* data partition is erased. If the info partition is selected, BOTH
1407+
* the data and info partitions are erased.
1408+
*/
14091409
unsigned bank_address = address - (address % bank_size);
14101410
bank_address /= sizeof(uint32_t); /* convert to word address */
14111411
unsigned data_address, info_address = 0u;
@@ -1819,7 +1819,8 @@ static void ot_flash_regs_write(void *opaque, hwaddr addr, uint64_t val64,
18191819
s->op.info_part = part_sel;
18201820
s->op.info_sel = info_sel;
18211821
s->op.erase_sel = (bool)erase_sel;
1822-
/* Erase operations neither go through FIFOs nor use/require a word count */
1822+
/* Erase operations neither go through FIFOs nor use/require a
1823+
* word count */
18231824
s->op.count = 0u;
18241825
xtrace_ot_flash_info("Erase at", s->op.address);
18251826
break;

0 commit comments

Comments
 (0)