diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-11-14 13:13:50 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-29 01:05:08 +0000 |
commit | 57b32569630025bea009a13fc46d1354debe3fdc (patch) | |
tree | 8ceba06e674bbbcd60575e392b109d122e379c68 /driver/charger/isl9241.c | |
parent | 1497d466220fc32f5d857883c4902a43c394059c (diff) | |
download | chrome-ec-57b32569630025bea009a13fc46d1354debe3fdc.tar.gz |
Rename CONFIG_CHARGER_INPUT_CURRENT to _CHARGER_DEFAULT_CURRENT_LIMIT
"Default input current" is not a very clear name, so rename this option to
better express its use as a default value that is set in the charger.
This is made possible by splitting other uses into
CHARGER_MIN_INPUT_CURRENT_LIMIT, making the only use for
CHARGER_INPUT_CURRENT be as a default.
BUG=b:163093572
TEST=make buildall; zmake build -a
BRANCH=none
LOW_COVERAGE_REASON=isl9241 and sm5803 currently lack emulators
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: Ia9c1df9061825b15477466e85343afeb2a371288
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4025404
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/charger/isl9241.c')
-rw-r--r-- | driver/charger/isl9241.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/charger/isl9241.c b/driver/charger/isl9241.c index 9ca2e9f3e0..6ff0db26e9 100644 --- a/driver/charger/isl9241.c +++ b/driver/charger/isl9241.c @@ -893,8 +893,8 @@ static void isl9241_init(int chgnum) return; /* Initialize the input current limit to the board's default. */ - if (isl9241_set_input_current_limit(chgnum, - CONFIG_CHARGER_INPUT_CURRENT)) + if (isl9241_set_input_current_limit( + chgnum, CONFIG_CHARGER_DEFAULT_CURRENT_LIMIT)) goto init_fail; return; |