diff options
Diffstat (limited to 'board/dojo/battery.c')
-rw-r--r-- | board/dojo/battery.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/board/dojo/battery.c b/board/dojo/battery.c index 290bf6067c..a766ea3e59 100644 --- a/board/dojo/battery.c +++ b/board/dojo/battery.c @@ -1,4 +1,4 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. +/* Copyright 2021 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -178,19 +178,18 @@ int charger_profile_override(struct charge_state_data *curr) chg_temp = K_TO_C(chg_temp); prev_chg_lvl = chg_lvl; - if (chg_temp <= temp_chg_table[chg_lvl].lo_thre && - chg_lvl > 0) + if (chg_temp <= temp_chg_table[chg_lvl].lo_thre && chg_lvl > 0) chg_lvl--; else if (chg_temp >= temp_chg_table[chg_lvl].hi_thre && - chg_lvl < CHG_LEVEL_COUNT - 1) + chg_lvl < CHG_LEVEL_COUNT - 1) chg_lvl++; curr->requested_current = MIN(curr->requested_current, - temp_chg_table[chg_lvl].chg_curr); + temp_chg_table[chg_lvl].chg_curr); - if(chg_lvl != prev_chg_lvl) + if (chg_lvl != prev_chg_lvl) ccprints("Override chg curr to %dmA by chg LEVEL_%d", - curr->requested_current, chg_lvl); + curr->requested_current, chg_lvl); } return 0; |