chip/mec1322/flash.c: Format with clang-format
BRANCH=none
TEST=none
@@ -62,8 +62,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;
@@ -153,8 +152,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;
}
@@ -171,7 +169,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;
