summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2020-04-03 16:02:26 -0700
committerCommit Bot <commit-bot@chromium.org>2020-04-15 02:11:13 +0000
commitbe61a53ffa746143eaf3817bff4bf66ae42babf6 (patch)
treef02dcd4497cdf7e80f76290fb8f441a97ce01f5a /baseboard
parenta8bd6d093f1f6088e76bb30a3de0e79bed0e9130 (diff)
downloadchrome-ec-be61a53ffa746143eaf3817bff4bf66ae42babf6.tar.gz
charger: Add chgnum arg to charger_get_input_current
With the advent of OCPC, one charger per Type-C, it will be required to retrieve the input current per charger IC. This commit adds the chgnum argument to charger_get_input_current. For boards with a single charger IC, they should simply pass in 0 for this argument. BUG=b:147440290,b:148980034 BRANCH=None TEST=`make -j buildall` TEST=With other code, verify that queries for input current is targeted at the correct charger IC. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: Iac80255faa539a7b4cfeb495aaed2bf12e62f182 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2135961 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/kukui/charger_mt6370.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/baseboard/kukui/charger_mt6370.c b/baseboard/kukui/charger_mt6370.c
index d876c41fc2..49e815c613 100644
--- a/baseboard/kukui/charger_mt6370.c
+++ b/baseboard/kukui/charger_mt6370.c
@@ -117,7 +117,7 @@ static void battery_thermal_control(struct charge_state_data *curr)
return;
/* If we fail to read input curr limit, skip for this cycle. */
- if (charger_get_input_current(&input_current))
+ if (charger_get_input_current(CHARGER_SOLO, &input_current))
return;
/*