summaryrefslogtreecommitdiff
path: root/board/agah
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-07-06 11:38:51 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-07 04:49:31 +0000
commit228b84712689b27fe41c16cfabb2e4ac79d60a50 (patch)
tree2210f322026de6c0735d013e6a86c4d8a8f27bcd /board/agah
parent8dc256efde636444031763198eebc1c237b40941 (diff)
downloadchrome-ec-228b84712689b27fe41c16cfabb2e4ac79d60a50.tar.gz
board/agah/charger_isl9241.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: I1e08b68ae741b82c3b5e499fc27787bed5f7262e Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3748790 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/agah')
-rw-r--r--board/agah/charger_isl9241.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/board/agah/charger_isl9241.c b/board/agah/charger_isl9241.c
index 1bc77c0ee4..298110ba16 100644
--- a/board/agah/charger_isl9241.c
+++ b/board/agah/charger_isl9241.c
@@ -98,7 +98,7 @@ static int board_disable_other_vbus_sink(int except_port)
*/
r = ppc_vbus_sink_enable(i, 0);
if (r)
- CPRINTS("Failed to disable sink path C%d (%d)", i, r);
+ CPRINTS("Failed to disable sink path C%d (%d)", i, r);
rv |= r;
}
@@ -116,8 +116,8 @@ int board_set_active_charge_port(int port)
enum charge_supplier active_supplier = charge_manager_get_supplier();
int active_port = charge_manager_get_active_charge_port();
- CPRINTS("Switching charger from P%d (supplier=%d) to P%d",
- active_port, active_supplier, port);
+ CPRINTS("Switching charger from P%d (supplier=%d) to P%d", active_port,
+ active_supplier, port);
if (port == CHARGE_PORT_NONE) {
CPRINTS("Disabling all charger ports");
@@ -146,8 +146,8 @@ int board_set_active_charge_port(int port)
* If we're running currently on a battery (active_supplier == NONE), we
* don't need to throttle because we're not disabling any port.
*/
- if (chipset_in_state(CHIPSET_STATE_ON)
- && active_supplier != CHARGE_SUPPLIER_NONE)
+ if (chipset_in_state(CHIPSET_STATE_ON) &&
+ active_supplier != CHARGE_SUPPLIER_NONE)
board_throttle_ap_gpu();
/*
@@ -251,7 +251,6 @@ void ac_change(void)
}
DECLARE_HOOK(HOOK_AC_CHANGE, ac_change, HOOK_PRIO_DEFAULT);
-
static void power_supply_changed(void)
{
/*