summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 13:25:41 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-14 01:34:42 +0000
commite998edf56d03d3223141c5f62e3a861331d36833 (patch)
tree53ab9e6d40b8f13159aca7b4ea976fd3878c1d15
parent2dae9561c5a1626f5e35f16ca52c9ed93c818a8f (diff)
downloadchrome-ec-e998edf56d03d3223141c5f62e3a861331d36833.tar.gz
board/casta/battery.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ib140f1ce9ef06d48a8c520b8ae416d3f76763c18 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728140 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> (cherry picked from commit 18e5eaec6193b477268d0a8a32ff6c2bfd4ec5c8) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4235377 Tested-by: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com> Code-Coverage: Henry Sun <henrysun@google.com> Tested-by: Henry Sun <henrysun@google.com> Commit-Queue: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com> Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
-rw-r--r--board/casta/battery.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/board/casta/battery.c b/board/casta/battery.c
index a494924d4c..0e14d10be8 100644
--- a/board/casta/battery.c
+++ b/board/casta/battery.c
@@ -12,8 +12,8 @@
#include "common.h"
#include "util.h"
-#define CHARGING_VOLTAGE_MV_SAFE 8400
-#define CHARGING_CURRENT_MA_SAFE 1500
+#define CHARGING_VOLTAGE_MV_SAFE 8400
+#define CHARGING_CURRENT_MA_SAFE 1500
/*
* Battery info for all casta battery types. Note that the fields
@@ -95,12 +95,12 @@ int charger_profile_override(struct charge_state_data *curr)
TEMP_OUT_OF_RANGE = TEMP_ZONE_COUNT
} temp_zone;
- /*
- * Precharge must be executed when communication is failed on
+ /*
+ * Precharge must be executed when communication is failed on
* dead battery.
- */
- if(!(curr->batt.flags & BATT_FLAG_RESPONSIVE))
- return 0;
+ */
+ if (!(curr->batt.flags & BATT_FLAG_RESPONSIVE))
+ return 0;
current = curr->requested_current;
voltage = curr->requested_voltage;
@@ -146,7 +146,7 @@ int charger_profile_override(struct charge_state_data *curr)
break;
}
- if(voltage > batt_info->voltage_max)
+ if (voltage > batt_info->voltage_max)
voltage = batt_info->voltage_max;
curr->requested_voltage = MIN(curr->requested_voltage, voltage);