chip/stm32/flash-stm32l.c: Format with clang-format
BRANCH=none
TEST=none
@@ -34,7 +34,8 @@ static void lock(void)
ignore_bus_fault(1);
STM32_FLASH_PECR = STM32_FLASH_PECR_PE_LOCK |
- STM32_FLASH_PECR_PRG_LOCK | STM32_FLASH_PECR_OPT_LOCK;
+ STM32_FLASH_PECR_PRG_LOCK |
+ STM32_FLASH_PECR_OPT_LOCK;
ignore_bus_fault(0);
}
@@ -105,8 +106,8 @@ static uint16_t read_optb(int offset)
*/
static void write_optb(int offset, uint16_t value)
{
- REG32(STM32_OPTB_BASE + offset) =
- (uint32_t)value | ((uint32_t)(~value) << 16);
+ REG32(STM32_OPTB_BASE + offset) = (uint32_t)value |
+ ((uint32_t)(~value) << 16);
}
/**
@@ -204,7 +205,8 @@ int crec_flash_physical_write(int offset, int size, const char *data)
/* Wait for writes to complete */
for (i = 0; ((STM32_FLASH_SR & 9) != 8) &&
- (i < flash_timeout_loop); i++)
+ (i < flash_timeout_loop);
+ i++)
;
size -= sizeof(uint32_t);
@@ -402,8 +404,7 @@ int crec_flash_physical_protect_now(int all)
uint32_t crec_flash_physical_get_valid_flags(void)
{
- return EC_FLASH_PROTECT_RO_AT_BOOT |
- EC_FLASH_PROTECT_RO_NOW |
+ return EC_FLASH_PROTECT_RO_AT_BOOT | EC_FLASH_PROTECT_RO_NOW |
EC_FLASH_PROTECT_ALL_NOW;
}
