summaryrefslogtreecommitdiff
path: root/board/kodama/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/kodama/battery.c')
-rw-r--r--board/kodama/battery.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/kodama/battery.c b/board/kodama/battery.c
index 1dbff92a00..1c6737bd3a 100644
--- a/board/kodama/battery.c
+++ b/board/kodama/battery.c
@@ -1,4 +1,4 @@
-/* Copyright 2019 The Chromium OS Authors. All rights reserved.
+/* Copyright 2019 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -14,7 +14,7 @@
#include "usb_pd.h"
#include "util.h"
-#define CPRINTS(format, args...) cprints(CC_CHARGER, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_CHARGER, format, ##args)
const struct board_batt_params board_battery_info[] = {
[BATTERY_SIMPLO] = {
@@ -95,9 +95,9 @@ int charger_profile_override(struct charge_state_data *curr)
* When smart battery temperature is more than 45 deg C, the max
* charging voltage is 4100mV.
*/
- if (curr->state == ST_CHARGE && bat_temp_c >= 450
- && !(curr->batt.flags & BATT_FLAG_BAD_TEMPERATURE))
- curr->requested_voltage = 4100;
+ if (curr->state == ST_CHARGE && bat_temp_c >= 450 &&
+ !(curr->batt.flags & BATT_FLAG_BAD_TEMPERATURE))
+ curr->requested_voltage = 4100;
else
curr->requested_voltage = batt_info->voltage_max;