summaryrefslogtreecommitdiff
path: root/board/casta/board.c
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2020-10-29 15:14:59 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-08 06:28:42 +0000
commita94624f1a2fa5c25c810fef5ef66012218ed177d (patch)
tree148c9274885b67be96931cb3439115b080ab528d /board/casta/board.c
parent4761e94ef6690c47a25351d024705197674720bd (diff)
downloadchrome-ec-a94624f1a2fa5c25c810fef5ef66012218ed177d.tar.gz
charger: rename charger_set_input_current
charger_set_input_current was actually sets the input current limit, so renames it to charger_set_input_current_limit. BUG=b:171853295 TEST=make buildall TEST=not output from `grep -r "\<charger_set_input_current\>"` BRANCH=none Change-Id: Icf4e99f287a7d4fc2d9560e8502e46cc07bfc085 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2569083 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/casta/board.c')
-rw-r--r--board/casta/board.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/casta/board.c b/board/casta/board.c
index 72e8045bc8..4942a76f62 100644
--- a/board/casta/board.c
+++ b/board/casta/board.c
@@ -168,13 +168,13 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_INIT_I2C);
static void set_input_limit_on_ac_removal(void)
{
- if(extpower_is_present())
- return;
+ if (extpower_is_present())
+ return;
- if(get_cbi_ssfc_charger() != SSFC_CHARGER_BQ25710)
- return;
+ if (get_cbi_ssfc_charger() != SSFC_CHARGER_BQ25710)
+ return;
- charger_set_input_current(0, CONFIG_CHARGER_INPUT_CURRENT);
+ charger_set_input_current_limit(0, CONFIG_CHARGER_INPUT_CURRENT);
}
DECLARE_HOOK(HOOK_AC_CHANGE, set_input_limit_on_ac_removal, HOOK_PRIO_DEFAULT);