diff options
Diffstat (limited to 'include/charger.h')
-rw-r--r-- | include/charger.h | 17 |
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. |