summaryrefslogtreecommitdiff
path: root/include/charger.h
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 /include/charger.h
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 'include/charger.h')
-rw-r--r--include/charger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/charger.h b/include/charger.h
index 00fac362b8..3baf9e93c9 100644
--- a/include/charger.h
+++ b/include/charger.h
@@ -243,7 +243,7 @@ enum ec_error_list charger_set_input_current(int input_current);
* Actual input current may be less than the desired input current set
* due to current ratings of the wall adapter.
*/
-enum ec_error_list charger_get_input_current(int *input_current);
+enum ec_error_list charger_get_input_current(int chgnum, int *input_current);
enum ec_error_list charger_manufacturer_id(int *id);
enum ec_error_list charger_device_id(int *id);