summaryrefslogtreecommitdiff
path: root/include/charger.h
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 /include/charger.h
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 'include/charger.h')
-rw-r--r--include/charger.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/charger.h b/include/charger.h
index f097f564a9..b36538712d 100644
--- a/include/charger.h
+++ b/include/charger.h
@@ -92,7 +92,8 @@ struct charger_drv {
int *voltage);
/* Set desired input current value */
- enum ec_error_list (*set_input_current)(int chgnum, int input_current);
+ enum ec_error_list (*set_input_current_limit)(int chgnum,
+ int input_current);
/* Get actual input current value */
enum ec_error_list (*get_input_current)(int chgnum, int *input_current);
@@ -255,8 +256,18 @@ int charger_get_system_power(void);
/* Other parameters that may be charger-specific, but are common so far. */
-/* Set desired input current value */
-enum ec_error_list charger_set_input_current(int chgnum, int input_current);
+/**
+ * Set desired input current limit
+ *
+ * Sets the hard limit of the input current (from AC).
+ *
+ * @param chgnum charger IC index
+ * @param input_current The current limit in mA.
+ *
+ * @return EC_SUCCESS on success, an error otherwise.
+ */
+enum ec_error_list charger_set_input_current_limit(int chgnum,
+ int input_current);
/*
* Get actual input current value.