summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 13:56:21 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 22:15:11 +0000
commita0751778f42b9e333e6ab20cad6ce9673a5f339d (patch)
tree747be4b88f513c56f73c346cd136bd5209da5b25
parent582d959fa5d21cf1c4dd4fb5d7c6924d5ae056e7 (diff)
downloadchrome-ec-a0751778f42b9e333e6ab20cad6ce9673a5f339d.tar.gz
board/nocturne_fp/ro_workarounds.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=./util/compare_build.sh -b fp Change-Id: I5099ad5aa2c16e76cd7c68da7abb93861b57a1a8 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728764 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Tom Hughes <tomhughes@chromium.org>
-rw-r--r--board/nocturne_fp/ro_workarounds.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/board/nocturne_fp/ro_workarounds.c b/board/nocturne_fp/ro_workarounds.c
index e6417ddc08..1dcf6d5602 100644
--- a/board/nocturne_fp/ro_workarounds.c
+++ b/board/nocturne_fp/ro_workarounds.c
@@ -19,7 +19,7 @@
#include "watchdog.h"
/* Console output macros */
-#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_SYSTEM, format, ##args)
/*
* We only patch RW to ensure that future ROs have correct behavior.
@@ -30,7 +30,7 @@
* Add in ap-off flag to be able to detect on next boot.
* No other code in this build uses this ap-off reset flag.
*/
-#define FORGE_PORFLAG_FLAGS (EC_RESET_FLAG_POWER_ON|EC_RESET_FLAG_AP_OFF)
+#define FORGE_PORFLAG_FLAGS (EC_RESET_FLAG_POWER_ON | EC_RESET_FLAG_AP_OFF)
static void wp_change_deferred(void)
{
@@ -75,8 +75,7 @@ void wp_event(enum gpio_signal signal)
* This function is also called from system_reset to set the final save
* reset flags, before an actual planned reset.
*/
-__override
-void bkpdata_write_reset_flags(uint32_t save_flags)
+__override void bkpdata_write_reset_flags(uint32_t save_flags)
{
/* Preserve flags in case a reset pulse occurs */
if (!gpio_get_level(GPIO_WP))