chip/mchp/flash.c: Format with clang-format
BRANCH=none
TEST=none
@@ -70,8 +70,7 @@ int crec_flash_physical_write(int offset, int size, const char *data)
for (i = 0; i < size; i += write_size) {
write_size = MIN((size - i), SPI_FLASH_MAX_WRITE_SIZE);
- ret = spi_flash_write(offset + i,
- write_size,
+ ret = spi_flash_write(offset + i, write_size,
(uint8_t *)data + i);
if (ret != EC_SUCCESS)
break;
@@ -94,8 +93,7 @@ int crec_flash_physical_erase(int offset, int size)
if (entire_flash_locked)
return EC_ERROR_ACCESS_DENIED;
- trace12(0, FLASH, 0,
- "flash_phys_erase: offset=0x%08X size=0x%08X",
+ trace12(0, FLASH, 0, "flash_phys_erase: offset=0x%08X size=0x%08X",
offset, size);
ret = spi_flash_erase(offset, size);
return ret;
@@ -164,8 +162,7 @@ uint32_t crec_flash_physical_get_protect_flags(void)
*/
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;
}
@@ -182,7 +179,8 @@ uint32_t crec_flash_physical_get_writable_flags(uint32_t cur_flags)
wp_status = spi_flash_check_wp();
- if (wp_status == SPI_WP_NONE || (wp_status == SPI_WP_HARDWARE &&
+ if (wp_status == SPI_WP_NONE ||
+ (wp_status == SPI_WP_HARDWARE &&
!(cur_flags & EC_FLASH_PROTECT_GPIO_ASSERTED)))
ret = EC_FLASH_PROTECT_RO_AT_BOOT | EC_FLASH_PROTECT_RO_NOW;
