diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:16:29 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 17:06:56 +0000 |
commit | 4478d66375fd9ad1f0cfa791d876febef02aba84 (patch) | |
tree | 7d2eb28f8cb22d61f678b8ab4dea15b981ab2e84 /chip | |
parent | 230149fcf3ed30a3e5e32a8c16e168775271042b (diff) | |
download | chrome-ec-4478d66375fd9ad1f0cfa791d876febef02aba84.tar.gz |
chip/ish/watchdog.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I6eddd753bc1708c944f013bc71b3fb7abf1e48ae
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729191
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/ish/watchdog.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chip/ish/watchdog.c b/chip/ish/watchdog.c index bf78f49312..81ede92d07 100644 --- a/chip/ish/watchdog.c +++ b/chip/ish/watchdog.c @@ -29,8 +29,8 @@ #include "watchdog.h" /* Units are hundreds of milliseconds */ -#define WDT_T1_PERIOD (100) /* 10 seconds */ -#define WDT_T2_PERIOD (10) /* 1 second */ +#define WDT_T1_PERIOD (100) /* 10 seconds */ +#define WDT_T2_PERIOD (10) /* 1 second */ int watchdog_init(void) { @@ -45,9 +45,8 @@ int watchdog_init(void) CCU_WDT_CD = WDT_CLOCK_HZ / 10; /* 10 Hz => 100 ms period */ /* Enable the watchdog timer and set initial T1/T2 values */ - WDT_CONTROL = WDT_CONTROL_ENABLE_BIT - | (WDT_T2_PERIOD << 8) - | WDT_T1_PERIOD; + WDT_CONTROL = WDT_CONTROL_ENABLE_BIT | (WDT_T2_PERIOD << 8) | + WDT_T1_PERIOD; task_enable_irq(ISH_WDT_IRQ); |