summaryrefslogtreecommitdiff
path: root/board/atlas
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/atlas
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/atlas')
-rw-r--r--board/atlas/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c
index 0ef9a591da..ac617130ab 100644
--- a/board/atlas/board.c
+++ b/board/atlas/board.c
@@ -529,8 +529,8 @@ static int charger_derate(int current)
static void board_charger_init(void)
{
- charger_set_input_current(CHARGER_SOLO, charger_derate
- (PD_MAX_CURRENT_MA));
+ charger_set_input_current_limit(CHARGER_SOLO,
+ charger_derate(PD_MAX_CURRENT_MA));
}
DECLARE_HOOK(HOOK_INIT, board_charger_init, HOOK_PRIO_DEFAULT);