From a94624f1a2fa5c25c810fef5ef66012218ed177d Mon Sep 17 00:00:00 2001 From: Eric Yilun Lin Date: Thu, 29 Oct 2020 15:14:59 +0800 Subject: 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 "\"` BRANCH=none Change-Id: Icf4e99f287a7d4fc2d9560e8502e46cc07bfc085 Signed-off-by: Eric Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2569083 Reviewed-by: Daisuke Nojiri --- include/charger.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'include/charger.h') 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. -- cgit v1.2.1