diff options
Diffstat (limited to 'include/ocpc.h')
-rw-r--r-- | include/ocpc.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/ocpc.h b/include/ocpc.h index 20ec35c797..da1c6907d4 100644 --- a/include/ocpc.h +++ b/include/ocpc.h @@ -42,16 +42,15 @@ struct ocpc_data { /** Set the VSYS target for the secondary charger IC. * - * @param desired_charger_input_current: Pointer to desired_input_current + * @param curr: Pointer to desired_input_current * @param ocpc: Pointer to OCPC data - * @param desired_batt_current_ma: The desired voltage - * @param desired_batt_voltage_mv: The desired current + * @param voltage_mv: The desired voltage + * @param current_ma: The desired current * @return EC_SUCCESS on success, error otherwise. */ -int ocpc_config_secondary_charger(int *desired_charger_input_current, - struct ocpc_data *ocpc, - int desired_batt_voltage_mv, - int desired_batt_current_ma); +int ocpc_config_secondary_charger(int *desired_input_current, + struct ocpc_data *ocpc, int voltage_mv, + int current_ma); /** Get the runtime data from the various ADCs. * @@ -60,8 +59,8 @@ int ocpc_config_secondary_charger(int *desired_charger_input_current, void ocpc_get_adcs(struct ocpc_data *ocpc); /* Set the PID constants for the charging loop */ -__override_proto void ocpc_get_pid_constants(int *kp, int *kp_div, int *ki, - int *ki_div, int *kd, int *kd_div); +__overridable void ocpc_get_pid_constants(int *kp, int *kp_div, int *ki, + int *ki_div, int *kd, int *kd_div); /* ** Set up some initial values for the OCPC data structure. This will call off |