diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2020-10-29 15:14:59 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-08 06:28:42 +0000 |
commit | a94624f1a2fa5c25c810fef5ef66012218ed177d (patch) | |
tree | 148c9274885b67be96931cb3439115b080ab528d /board/host | |
parent | 4761e94ef6690c47a25351d024705197674720bd (diff) | |
download | chrome-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/host')
-rw-r--r-- | board/host/charger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/host/charger.c b/board/host/charger.c index 01f29571d0..1128f318d3 100644 --- a/board/host/charger.c +++ b/board/host/charger.c @@ -128,7 +128,7 @@ static enum ec_error_list mock_get_input_current(int chgnum, int *input_current) } -static enum ec_error_list mock_set_input_current(int chgnum, int current) +static enum ec_error_list mock_set_input_current_limit(int chgnum, int current) { const struct charger_info *info = mock_get_info(chgnum); @@ -160,7 +160,7 @@ const struct charger_drv mock_drv = { .set_current = &mock_set_current, .get_voltage = &mock_get_voltage, .set_voltage = &mock_set_voltage, - .set_input_current = &mock_set_input_current, + .set_input_current_limit = &mock_set_input_current_limit, .get_input_current = &mock_get_input_current, .manufacturer_id = &mock_manufacturer_id, .device_id = &mock_device_id, |