summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:40:48 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 18:42:37 +0000
commit5aa17b087f9ba956d77efd8eec292383c38fe4e3 (patch)
tree6273991650ddfeb52c9ea4e9c2c65781b0256582
parent4b3e08964c29382d300401d95c703320ed717784 (diff)
downloadchrome-ec-5aa17b087f9ba956d77efd8eec292383c38fe4e3.tar.gz
zephyr/test/drivers/src/console_cmd/charge_manager.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I401bdf237c85534a4b0580966428f0feff216942 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730926 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--zephyr/test/drivers/src/console_cmd/charge_manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/zephyr/test/drivers/src/console_cmd/charge_manager.c b/zephyr/test/drivers/src/console_cmd/charge_manager.c
index 64716b1ced..e4756bbb1b 100644
--- a/zephyr/test/drivers/src/console_cmd/charge_manager.c
+++ b/zephyr/test/drivers/src/console_cmd/charge_manager.c
@@ -25,8 +25,7 @@ static void connect_sink_to_port(const struct emul *charger_emul,
tcpci_emul_set_reg(tcpci_emul, TCPC_REG_EXT_STATUS,
TCPC_REG_EXT_STATUS_SAFE0V);
tcpci_tcpc_alert(0);
- zassume_ok(tcpci_partner_connect_to_tcpci(partner, tcpci_emul),
- NULL);
+ zassume_ok(tcpci_partner_connect_to_tcpci(partner, tcpci_emul), NULL);
/* Wait for PD negotiation and current ramp.
* TODO(b/213906889): Check message timing and contents.
@@ -60,9 +59,8 @@ static void *console_cmd_charge_manager_setup(void)
/* Initialized the sink to request 5V and 3A */
tcpci_partner_init(&test_fixture.sink_5v_3a, PD_REV20);
- test_fixture.sink_5v_3a.extensions =
- tcpci_snk_emul_init(&test_fixture.sink_ext,
- &test_fixture.sink_5v_3a, NULL);
+ test_fixture.sink_5v_3a.extensions = tcpci_snk_emul_init(
+ &test_fixture.sink_ext, &test_fixture.sink_5v_3a, NULL);
test_fixture.sink_ext.pdo[1] =
PDO_FIXED(5000, 3000, PDO_FIXED_UNCONSTRAINED);