summaryrefslogtreecommitdiff
path: root/chip/ish/ish_persistent_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/ish/ish_persistent_data.c')
-rw-r--r--chip/ish/ish_persistent_data.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/chip/ish/ish_persistent_data.c b/chip/ish/ish_persistent_data.c
index 003f781d5f..149acaeade 100644
--- a/chip/ish/ish_persistent_data.c
+++ b/chip/ish/ish_persistent_data.c
@@ -1,4 +1,4 @@
-/* Copyright 2019 The Chromium OS Authors. All rights reserved.
+/* Copyright 2019 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -16,7 +16,7 @@ struct ish_persistent_data ish_persistent_data = {
.magic = PERSISTENT_DATA_MAGIC,
.reset_flags = EC_RESET_FLAG_POWER_ON,
.watchdog_counter = 0,
- .panic_data = {0},
+ .panic_data = { 0 },
};
/*
@@ -40,8 +40,7 @@ void ish_persistent_data_init(void)
{
if (ish_persistent_data_aon.magic == PERSISTENT_DATA_MAGIC) {
/* Stored data is valid, load a copy */
- memcpy(&ish_persistent_data,
- &ish_persistent_data_aon,
+ memcpy(&ish_persistent_data, &ish_persistent_data_aon,
sizeof(struct ish_persistent_data));
/* Invalidate stored data, in case commit fails to happen */
@@ -54,7 +53,6 @@ void ish_persistent_data_init(void)
void ish_persistent_data_commit(void)
{
- memcpy(&ish_persistent_data_aon,
- &ish_persistent_data,
+ memcpy(&ish_persistent_data_aon, &ish_persistent_data,
sizeof(struct ish_persistent_data));
}