summaryrefslogtreecommitdiff
path: root/chip/host
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:14:30 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 17:17:46 +0000
commit3e0fd4e9cc90c226798a1536931da928b8df10a0 (patch)
tree17059df51e75f90d4000e81ef4c12c22644ae06b /chip/host
parentb4992a36e1465abab4ebbe5d7da1e2aec02aa886 (diff)
downloadchrome-ec-3e0fd4e9cc90c226798a1536931da928b8df10a0.tar.gz
chip/host/flash.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I9d329206e5fbf4a4a97ec2f652643285165d6e34 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729148 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'chip/host')
-rw-r--r--chip/host/flash.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/chip/host/flash.c b/chip/host/flash.c
index 75212737e0..5d895222e7 100644
--- a/chip/host/flash.c
+++ b/chip/host/flash.c
@@ -26,8 +26,7 @@ test_mockable int flash_pre_op(void)
static int flash_check_protect(int offset, int size)
{
int first_bank = offset / CONFIG_FLASH_BANK_SIZE;
- int last_bank = DIV_ROUND_UP(offset + size,
- CONFIG_FLASH_BANK_SIZE);
+ int last_bank = DIV_ROUND_UP(offset + size, CONFIG_FLASH_BANK_SIZE);
int bank;
for (bank = first_bank; bank < last_bank; ++bank)
@@ -124,8 +123,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;
}
@@ -163,8 +161,9 @@ int crec_flash_pre_init(void)
*/
if ((prot_flags & EC_FLASH_PROTECT_RO_AT_BOOT) &&
!(prot_flags & EC_FLASH_PROTECT_RO_NOW)) {
- int rv = crec_flash_set_protect(EC_FLASH_PROTECT_RO_NOW,
- EC_FLASH_PROTECT_RO_NOW);
+ int rv =
+ crec_flash_set_protect(EC_FLASH_PROTECT_RO_NOW,
+ EC_FLASH_PROTECT_RO_NOW);
if (rv)
return rv;