diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 15:31:42 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-29 01:40:59 +0000 |
commit | cf1bfcd64660538c8d11f9f765fc109d744bcfe5 (patch) | |
tree | 3cc59b3c7e8748d16cf69b1eb9b7a8a69676026c | |
parent | 294cf086e05a036935df56f7dfd9dd0ac901ee16 (diff) | |
download | chrome-ec-cf1bfcd64660538c8d11f9f765fc109d744bcfe5.tar.gz |
zephyr/projects/corsola/src/krabby/hooks.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I875634b122364be6ad3c57e945ac4cd0a897e29f
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730742
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | zephyr/projects/corsola/src/krabby/hooks.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/zephyr/projects/corsola/src/krabby/hooks.c b/zephyr/projects/corsola/src/krabby/hooks.c index 9fae7c8bb5..6f0a192e85 100644 --- a/zephyr/projects/corsola/src/krabby/hooks.c +++ b/zephyr/projects/corsola/src/krabby/hooks.c @@ -15,15 +15,16 @@ static void board_i2c3_ctrl(bool enable) { - if (DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(DT_NODELABEL(i2c3), - scl_gpios, 0)) == DEVICE_DT_GET(DT_NODELABEL(gpiof))) { + if (DEVICE_DT_GET( + DT_GPIO_CTLR_BY_IDX(DT_NODELABEL(i2c3), scl_gpios, 0)) == + DEVICE_DT_GET(DT_NODELABEL(gpiof))) { /* * TODO(b/226296649): * Use pinctrl APIs to enable/disable an interface. */ struct gctrl_it8xxx2_regs *const gctrl_base = - (struct gctrl_it8xxx2_regs *) - DT_REG_ADDR(DT_NODELABEL(gctrl)); + (struct gctrl_it8xxx2_regs *)DT_REG_ADDR( + DT_NODELABEL(gctrl)); if (enable) { gctrl_base->GCTRL_PMER3 |= IT8XXX2_GCTRL_SMB3PSEL; |