summaryrefslogtreecommitdiff
path: root/board/casta
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>2022-07-01 16:45:58 +0000
commit18e5eaec6193b477268d0a8a32ff6c2bfd4ec5c8 (patch)
treed4d597999b03b740f800c122ff307c6396c40cd6 /board/casta
parent6f389d6f56ad469e4a36c4ff65e8b664cc403bfb (diff)
downloadchrome-ec-18e5eaec6193b477268d0a8a32ff6c2bfd4ec5c8.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>
Diffstat (limited to 'board/casta')
-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 0ced18e734..246a05c43d 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);